/* Additions for Professional Template Integration */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.table-container {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
}

.grid-table th,
.grid-table td {
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    text-align: left;
    font-size: 15px;
}

.grid-table th {
    background-color: rgba(25,29,36,0.02);
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.grid-table tr:last-child td {
    border-bottom: none;
}

.grid-table tr:hover td {
    background-color: rgba(25,29,36,0.01);
}

.action-icon {
    text-decoration: none;
    margin-right: 12px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.action-icon:hover {
    opacity: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 29, 36, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--surface);
    margin: 10vh auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(25,29,36,0.08);
}

.modal-header {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ink);
}

.mandatory-text {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.text-danger {
    color: #D92D20;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--ink);
    background-color: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--pine);
    box-shadow: 0 0 0 3px rgba(31, 92, 75, 0.1);
}

.error-message {
    color: #D92D20;
    font-size: 13px;
    display: block;
    margin-top: -12px;
    margin-bottom: 16px;
}

.modal-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    text-align: center;
    padding: 48px 24px !important;
    color: var(--ink-soft);
}
