/*
Theme Name: Employee Management
Description: A custom WordPress theme for employee shift logging, time tracking, and salary management
Version: 1.0
Author: Your Name
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page Styles */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-form h1 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    text-align: center;
    font-size: 28px;
}

.login-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form form {
    margin: 0;
}

#login-message {
    margin-bottom: 20px;
}

#login-message .alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 0;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.login-form .form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.login-form .form-group label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: normal;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form .forgetmenot {
    margin-bottom: 20px;
}

.login-form .forgetmenot label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-primary {
    background: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Shift Logging Forms */
.shift-log-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shift-log-form h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Navigation */
.main-nav {
    background: #2c3e50;
    padding: 15px 0;
    margin-bottom: 30px;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav a:hover {
    background: #34495e;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dashboard-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Reports Table */
.reports-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reports-table th,
.reports-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.reports-table th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
}

.reports-table tr:hover {
    background: #f5f5f5;
}

/* Alerts */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Filters */
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.report-filters .form-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.report-filters .form-group label {
    display: block;
    margin-bottom: 5px;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.summary-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.summary-card .value {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

/* Dashboard Styles */
.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.dashboard-wrapper h1 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 600;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.status-complete {
    color: #27ae60;
}

.status-in-progress {
    color: #f39c12;
}

.status-pending {
    color: #95a5a6;
}

.dashboard-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.dashboard-section h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.salary-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.salary-summary h3 {
    margin-top: 0;
    color: #2c3e50;
}

.salary-total {
    font-size: 24px;
    color: #27ae60;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #27ae60;
}

/* Attendance Styles */
.attendance-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.attendance-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.attendance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.absent-dates,
.incomplete-dates {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.absent-list,
.incomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.absent-list li,
.incomplete-list li {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.incomplete-list li {
    border-left-color: #f39c12;
}

.absent-list .date,
.incomplete-list .date {
    font-weight: 600;
    color: #2c3e50;
}

.absent-list .day-name,
.incomplete-list .day-name {
    color: #7f8c8d;
    font-size: 14px;
}

/* Attendance Calendar */
.attendance-calendar {
    margin: 30px 0;
}

.attendance-calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.attendance-calendar-table th {
    background: #2c3e50;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.attendance-calendar-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    position: relative;
    min-height: 60px;
}

.attendance-calendar-table td.empty {
    background: #f5f5f5;
}

.attendance-calendar-table td.day {
    cursor: pointer;
    transition: background 0.3s;
}

.attendance-calendar-table td.day:hover {
    background: #f0f0f0;
}

.attendance-calendar-table td.present {
    background: #d4edda;
    border-color: #27ae60;
}

.attendance-calendar-table td.absent {
    background: #f8d7da;
    border-color: #e74c3c;
}

.attendance-calendar-table td.incomplete {
    background: #fff3cd;
    border-color: #f39c12;
}

.attendance-calendar-table td.weekend {
    background: #e9ecef;
}

.attendance-calendar-table td.future {
    background: #fff;
    color: #999;
}

.attendance-calendar-table td.today {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.attendance-calendar-table td.leave {
    background: #fff3e0;
    border-color: #ff9800;
}

.attendance-calendar-table td.sunday {
    background: #f5f5f5;
}

.attendance-calendar-table .day-number {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.attendance-calendar-table .day-status {
    display: block;
    font-size: 20px;
    color: #2c3e50;
}

.calendar-legend {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.legend-box.present {
    background: #d4edda;
    border: 1px solid #27ae60;
}

.legend-box.absent {
    background: #f8d7da;
    border: 1px solid #e74c3c;
}

.legend-box.incomplete {
    background: #fff3cd;
    border: 1px solid #f39c12;
}

.legend-box.weekend {
    background: #e9ecef;
    border: 1px solid #95a5a6;
}

/* Sidebar Styles */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #2c3e50;
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-content {
    padding: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 30px;
}

.user-avatar img {
    border-radius: 50%;
    margin-right: 15px;
}

.user-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #fff;
}

.user-info p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-nav .icon {
    margin-right: 10px;
    font-size: 18px;
}

.main-content {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
    min-height: 100vh;
}

.main-content .container {
    max-width: 100%;
    padding: 0;
}

.main-content-full {
    padding: 30px;
}

/* Professional Form Styles */
.professional-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.text-muted {
    color: #6c757d;
}

.form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-icon {
    margin-right: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

.password-change-section {
    margin-top: 20px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.present {
    background: #d4edda;
    color: #155724;
}

.status-badge.absent {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.incomplete {
    background: #fff3cd;
    color: #856404;
}

.present-row {
    background: #f0f9f4;
}

.absent-row {
    background: #fef0f0;
}

.incomplete-row {
    background: #fffbf0;
}

/* Admin Table Styles */
.attendance-summary-table {
    margin: 20px 0;
}

/* Form Description */
.form-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

/* Tabs Styles */
.emp-mgmt-tabs {
    margin: 20px 0;
}

.emp-mgmt-tab-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ddd;
    display: flex;
    flex-wrap: wrap;
}

.emp-mgmt-tab-nav li {
    margin: 0;
    padding: 0;
}

.emp-mgmt-tab-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.emp-mgmt-tab-nav a:hover {
    background: #e9e9e9;
    color: #2c3e50;
}

.emp-mgmt-tab-nav a.active {
    background: #fff;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
}

.emp-mgmt-tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 4px;
    min-height: 200px;
}

.emp-mgmt-tab-content.active {
    display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .report-filters .form-group {
        display: block;
        width: 100%;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .attendance-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .absent-list,
    .incomplete-list {
        grid-template-columns: 1fr;
    }
    
    .page-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        top: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

