@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --tridoc-primary: #6366f1;
    --tridoc-primary-hover: #4f46e5;
    --tridoc-bg: #f8fafc;
    --tridoc-card: #ffffff;
    --tridoc-text: #1e293b;
    --tridoc-text-muted: #64748b;
    --tridoc-radius: 12px;
    --tridoc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tridoc-font: 'Inter', sans-serif;
}

.tridoc-container {
    padding: 20px 0;
    font-family: var(--tridoc-font);
}

.tridoc-table-wrapper {
    overflow-x: auto;
    background: var(--tridoc-card);
    border-radius: var(--tridoc-radius);
    box-shadow: var(--tridoc-shadow);
    border: 1px solid #e2e8f0;
}

.tridoc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tridoc-table th {
    background: #f1f5f9;
    padding: 16px;
    font-weight: 600;
    color: var(--tridoc-text);
    border-bottom: 2px solid #e2e8f0;
}

.tridoc-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.tridoc-item:last-child td {
    border-bottom: none;
}

.tridoc-td-name {
    width: 25%;
    color: var(--tridoc-text);
}

.tridoc-td-desc {
    width: 55%;
    color: var(--tridoc-text-muted);
    font-size: 0.9rem;
}

.tridoc-td-action {
    width: 20%;
    text-align: right;
}

.tridoc-download-btn {
    background: var(--tridoc-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.tridoc-download-btn:hover {
    background: var(--tridoc-primary-hover);
}

/* Modal Styling */
.tridoc-modal {
    display: flex;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tridoc-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.tridoc-modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.tridoc-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: var(--tridoc-text-muted);
    cursor: pointer;
}

.tridoc-modal-header h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.tridoc-form-group {
    margin-bottom: 16px;
}

.tridoc-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.tridoc-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.tridoc-submit-btn {
    background: var(--tridoc-primary);
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.tridoc-submit-btn:hover {
    background: var(--tridoc-primary-hover);
}