:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #34495e;
    --sidebar-width: 250px;
}

.wgos-system * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wgos-system {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    min-height: 80vh;
}

/* Sidebar Styles */
.wgos-sidebar {
    width: var(--sidebar-width);
    background: var(--secondary);
    color: white;
    height: 100%;
    position: relative;
    transition: all 0.3s;
}

.wgos-sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wgos-logo {
    font-size: 1.3rem;
    font-weight: 700;
}

.wgos-logo span {
    color: var(--primary);
}

.wgos-close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.wgos-sidebar-menu {
    padding: 15px 0;
}

.wgos-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.wgos-menu-item:hover, .wgos-menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
}

.wgos-menu-item i {
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.wgos-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wgos-header {
    height: 60px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.wgos-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wgos-toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark);
    display: none;
}

.wgos-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wgos-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

.wgos-user-info:hover {
    background: #f5f5f5;
}

.wgos-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wgos-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.wgos-user-info:hover .wgos-user-dropdown {
    display: block;
}

.wgos-user-dropdown-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.wgos-user-dropdown-item:hover {
    background: #f5f5f5;
}

.wgos-user-dropdown-item:last-child {
    border-bottom: none;
}

.wgos-user-dropdown-item i {
    width: 20px;
    color: #7f8c8d;
}

.wgos-content {
    padding: 20px;
    flex: 1;
}

.wgos-page-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stats Cards */
.wgos-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wgos-stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.wgos-stat-card:hover {
    transform: translateY(-5px);
}

.wgos-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.wgos-stat-icon.wgos-blue {
    background: #e1f0fa;
    color: var(--primary);
}

.wgos-stat-icon.wgos-green {
    background: #e7f7ef;
    color: var(--success);
}

.wgos-stat-icon.wgos-orange {
    background: #fff8e1;
    color: var(--warning);
}

.wgos-stat-icon.wgos-purple {
    background: #f9e8ff;
    color: #9b59b6;
}

.wgos-stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.wgos-stat-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Dashboard Grid */
.wgos-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.wgos-dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.wgos-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wgos-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
}

.wgos-card-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.wgos-btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.wgos-btn-primary {
    background: var(--primary);
    color: white;
}

.wgos-btn-primary:hover {
    background: #2980b9;
}

.wgos-btn-success {
    background: var(--success);
    color: white;
}

.wgos-btn-success:hover {
    background: #27ae60;
}

.wgos-btn-danger {
    background: var(--danger);
    color: white;
}

.wgos-btn-danger:hover {
    background: #c0392b;
}

.wgos-btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Quick Actions */
.wgos-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wgos-quick-action-btn {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.wgos-quick-action-btn:hover {
    background: #e9ecef;
    border-color: var(--primary);
}

.wgos-quick-action-btn i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Table Styles */
.wgos-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow-x: auto;
}

.wgos-table {
    width: 100%;
    border-collapse: collapse;
}

.wgos-table thead {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
}

.wgos-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.wgos-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.wgos-table tbody tr:hover {
    background: #f8f9fa;
}

.wgos-table td {
    padding: 15px;
}

.wgos-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.wgos-status-active {
    background: #e7f7ef;
    color: var(--success);
}

.wgos-status-on-leave {
    background: #fff8e1;
    color: var(--warning);
}

.wgos-status-inactive {
    background: #ffeaea;
    color: var(--danger);
}

.wgos-action-buttons {
    display: flex;
    gap: 5px;
}

.wgos-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #555;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.wgos-btn-icon:hover {
    background: var(--primary);
    color: white;
}

.wgos-btn-icon.delete:hover {
    background: var(--danger);
}

/* Form Styles */
.wgos-form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
}

.wgos-form-group {
    margin-bottom: 20px;
}

.wgos-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.wgos-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.wgos-form-row {
    display: flex;
    gap: 15px;
}

.wgos-form-row .wgos-form-group {
    flex: 1;
}

.wgos-form-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal Styles */
.wgos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.wgos-modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.wgos-modal-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wgos-modal-header h2 {
    font-size: 1.5rem;
}

.wgos-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.wgos-modal-body {
    padding: 25px;
}

.wgos-modal-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Page Management */
.wgos-page {
    display: none;
}

.wgos-page.active {
    display: block;
}

/* Empty State */
.wgos-empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.wgos-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.wgos-login-required {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 992px) {
    .wgos-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .wgos-sidebar {
        position: fixed;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .wgos-sidebar.active {
        left: 0;
    }
    
    .wgos-close-sidebar {
        display: block;
    }
    
    .wgos-toggle-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .wgos-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .wgos-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .wgos-quick-actions {
        grid-template-columns: 1fr;
    }
}