
/* === SUPPORT DIRECTORY === */
.directory-container {
    max-width: 1000px;
    margin: 76px auto 2rem;
    padding: 0 1.5rem;
}

.directory-header {
    margin-bottom: 1.5rem;
}

.directory-header h2 {
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 0.3rem;
}

.directory-subtitle {
    color: #777;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.add-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 4px;
    background: #0b3b85;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.add-btn:hover { opacity: 0.9; }

.mail-page.theme-nma .add-btn { background: #ff4757; }
.mail-page.theme-bom .add-btn { background: #e53e3e; }

/* Form */
.directory-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.directory-form h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.save-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #0b3b85;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.mail-page.theme-nma .save-btn { background: #ff4757; }
.mail-page.theme-bom .save-btn { background: #e53e3e; }

.directory-form .cancel-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #555;
    cursor: pointer;
}

.form-error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Directory cards */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.directory-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow 0.15s;
}

.directory-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #0b3b85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mail-page.theme-nma .card-icon { background: #ffe8ea; color: #ff4757; }
.mail-page.theme-bom .card-icon { background: #fee8e8; color: #e53e3e; }

.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h3 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 0.3rem;
}

.card-description {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 0.4rem;
}

.card-email {
    color: #0b3b85;
    font-size: 0.85rem;
    margin: 0 0 0.4rem;
    word-break: break-all;
}

.card-faculty {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    background: #e8f0fe;
    color: #0b3b85;
}

.card-faculty.all {
    background: #f0f0f0;
    color: #666;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-actions .edit-btn,
.card-actions .delete-btn {
    padding: 0.3rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.75rem;
    cursor: pointer;
    color: #555;
}

.card-actions .edit-btn:hover { background: #f0f4ff; color: #0b3b85; }
.card-actions .delete-btn:hover { background: #fff0f0; color: #e53e3e; }

.directory-container .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.directory-container .loading-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}
