:root {
    --primary: #e83e8c;       /* Vibrant pink */
    --primary-light: #ff7eb9; /* Lighter pink */
    --primary-dark: #c2185b;  /* Darker pink */
    --secondary: #ffb6c1;     /* Light pink */
    --accent: #f8bbd0;        /* Soft pink */
    --light: #fff5f7;         /* Very light pink */
    --dark: #880e4f;          /* Deep pink */
    --text: #333;
    --text-light: #666;
    --border: #f3a4c2;        /* Pink border */
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 30px 0;
    margin-bottom: 20px;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 15px 0;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.main-nav a i {
    margin-right: 8px;
}

.search-nav {
    margin-left: auto;
}

.search-nav form {
    display: flex;
}

.search-nav input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-nav button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - [header height] - [footer height]);
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Search Panel */
.search-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    outline: none;
}

.search-box button {
    padding: 12px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.search-box button i {
    margin-right: 8px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 200px;
}

.import-btn, .export-btn {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.import-btn {
    background-color: var(--accent);
    color: var(--dark);
    margin-left: auto;
}

.import-btn:hover {
    background-color: #7ab798;
    color: var(--dark);
    text-decoration: none;
}

.export-btn {
    background-color: var(--secondary);
    color: white;
}

.export-btn:hover {
    background-color: #e07d5e;
    color: white;
    text-decoration: none;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.staff-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.staff-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.default-photo {
    height: 200px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.staff-info {
    padding: 20px;
}

.staff-info h3 {
    margin: 0 0 5px;
    color: var(--dark);
}

.position {
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 5px;
    font-size: 0.95rem;
}

.dept {
    color: var(--secondary);
    font-size: 0.9rem;
    margin: 0 0 10px;
    font-weight: 500;
}

.specialization {
    background: #f0eafa;
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 5px 0;
}

.specialization i {
    margin-right: 5px;
}

.contact-info {
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.contact-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--primary);
}

.bio-preview {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 50px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Import Page */
.import-instructions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.instruction-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary);
    border: 1px solid var(--border);
}

.instruction-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    color: var(--primary);
    margin-bottom: 15px;
}

.instruction-card h3 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.instruction-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.instruction-card li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.instruction-card li strong {
    color: var(--primary);
}

.import-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.file-upload {
    margin-bottom: 20px;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    display: inline-block;
    padding: 15px 25px;
    background: var(--light);
    color: var(--primary);
    border: 2px dashed var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.file-upload label:hover {
    background: #f0eafa;
}

.file-upload i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Alerts */
.alert {
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    border-left: 5px solid;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto 30px;
}

.alert.success {
    border-left-color: var(--success);
    background-color: #e8f5e9;
}

.alert.error {
    border-left-color: var(--error);
    background-color: #ffebee;
}

.alert i {
    font-size: 50px;
    margin-bottom: 15px;
    color: var(--primary);
}

.alert h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.alert p {
    margin-bottom: 20px;
    color: var(--text);
}

.alert-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 15px;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn.primary {
    background: var(--primary);
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: var(--secondary);
}

.btn.secondary:hover {
    background: #e07d5e;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.main-footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.main-footer p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .search-nav {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .search-nav form {
        width: 100%;
    }
    
    .search-nav input {
        width: 100%;
    }
    
    .import-instructions {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .import-btn, .export-btn {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Add these styles to your existing CSS */

.staff-table-container {
    width: 100%;
    overflow-x: auto;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.staff-table th {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.staff-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

.staff-table tr:hover {
    background-color: #f9f5ff;
}

.staff-table a {
    color: var(--primary);
    text-decoration: none;
}

.staff-table a:hover {
    text-decoration: underline;
}

.specialization {
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-top: 5px;
    font-style: italic;
}

/* Responsive table */
@media (max-width: 768px) {
    .staff-table {
        display: block;
    }
    
    .staff-table thead {
        display: none;
    }
    
    .staff-table tbody, 
    .staff-table tr, 
    .staff-table td {
        display: block;
        width: 100%;
    }
    
    .staff-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .staff-table td {
        padding: 10px;
        border-bottom: 1px solid var(--border);
        position: relative;
        padding-left: 40%;
    }
    
    .staff-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 35%;
        padding-right: 10px;
        font-weight: 500;
        color: var(--primary);
    }
    
    .staff-table td:last-child {
        border-bottom: none;
    }
    
    /* Hide specialization in mobile view */
    .specialization {
        display: none;
    }
}


.clear-btn {
    padding: 12px 15px;
    background-color: #f44336;
    color: white;
    border-radius: 6px;
    margin-left: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background-color: #d32f2f;
    color: white;
    text-decoration: none;
}

.clear-btn i {
    margin-right: 5px;
}

/* Ensure search results don't overlap */
.staff-table-container {
    margin-top: 20px;
    clear: both;
}

.search-panel {
    margin-bottom: 20px;
    overflow: hidden;
}


/* Add these to your existing CSS */

.clear-btn {
    padding: 12px 15px;
    background-color: #f44336;
    color: white;
    border-radius: 6px;
    margin-left: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background-color: #d32f2f;
    color: white;
    text-decoration: none;
}

.clear-btn i {
    margin-right: 5px;
}

.search-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.results-count {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.staff-table-container {
    margin-top: 10px;
    clear: both;
    overflow-x: auto;
}

.search-panel {
    margin-bottom: 20px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box button, 
    .search-box .clear-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .export-btn, 
    .import-btn {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
}

/* Autocomplete dropdown styles */
.ui-autocomplete {
    position: absolute;
    z-index: 1000;
    cursor: pointer;
    padding: 0;
    margin-top: 2px;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item:hover,
.ui-autocomplete .ui-state-focus,
.ui-autocomplete .ui-state-active {
    background-color: #5d4e8f;
    color: white;
    border-color: #5d4e8f;
}

.ui-helper-hidden-accessible {
    display: none;
}