/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-size: 14px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #3498db;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn i {
    font-size: 14px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-cancel {
    background-color: #95a5a6;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Login Form Styles */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 5px;
    color: #2c3e50;
}

.login-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-weight: normal;
}

.login-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #7f8c8d;
}

.login-info p {
    margin-bottom: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Admin Profile Styles */
.admin-profile-container {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-profile-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 i {
    color: #3498db;
}

.section-note {
    font-size: 13px;
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Input with Icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 10px;
    color: #7f8c8d;
}

.input-with-icon input {
    padding-left: 35px;
}

/* Password Field */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #7f8c8d;
    z-index: 1;
}

.password-toggle:hover {
    color: #3498db;
}

/* Dashboard Styles */
.dashboard {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-filter {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.search-filter form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box {
    flex: 2;
    position: relative;
}

.filter-box {
    flex: 1;
}

.search-box input,
.filter-box select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.search-box input {
    padding-left: 30px;
}

/* Table Styles */
.staff-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

table tr:hover {
    background-color: #f9f9f9;
}

table td.actions {
    display: flex;
    gap: 5px;
}

table td.no-records {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
}

/* Staff Form Styles */
.staff-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h2 i {
    color: #3498db;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Message Styles */
.success-message,
.error-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Staff Details Styles */
.staff-details {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-group {
    flex: 1;
}

.detail-group h3 {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.detail-group p {
    font-size: 16px;
}

.detail-group.full-width {
    width: 100%;
    margin-bottom: 20px;
}

/* Tenure and Salary Sections */
.tenure-info, 
.tenure-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.tenure-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.salary-update-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.salary-update-section h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.salary-update-section .note {
    font-size: 13px;
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.salary-history-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.salary-history-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.salary-history-section h3 i {
    color: #3498db;
}

.salary-history-section table {
    margin-bottom: 20px;
}

.documents-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.documents-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.documents-section h3 i {
    color: #3498db;
}

.document-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.document-item {
    flex: 1;
    min-width: 200px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.document-item h4 {
    margin-bottom: 10px;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-item h4 i {
    color: #3498db;
}

.document-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.current-file {
    margin-top: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-file span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-info {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-filter form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box, .filter-box {
        flex: auto;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .user-info {
        flex-direction: column;
    }
    
    .page-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
} 