* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.login-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .user-info .role {
    background: #3498db;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Container */
.container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 30px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.admin-actions, .operator-actions {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Forms */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

/* Buttons */
.btn-primary {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
}

.btn-edit {
    background: #f39c12;
    color: white;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-status {
    background: #2ecc71;
    color: white;
}

.btn-status:hover {
    background: #27ae60;
}

/* Tables */
.data-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
    overflow-x: auto;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background: #2c3e50;
    color: white;
    font-weight: bold;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* Badges */
.badge {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.badge-admin {
    background: #e74c3c;
    color: white;
}

.badge-operator {
    background: #3498db;
    color: white;
}

.badge-active {
    background: #2ecc71;
    color: white;
}

.badge-inactive {
    background: #e74c3c;
    color: white;
}

/* Messages */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

/* Search Section */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Stats Summary */
.stats-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid,
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.text-center {
    text-align: center;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Activity List */
.activity-list ul {
    list-style: none;
    padding: 0;
}

.activity-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.activity-user {
    font-weight: bold;
    color: #2c3e50;
    min-width: 100px;
}

.activity-action {
    background: #3498db;
    color: white;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.activity-details {
    flex: 1;
    color: #666;
}

.activity-time {
    color: #999;
    font-size: 12px;
}

/* Mini Table */
.mini-table {
    width: 100%;
}

.mini-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.mini-table td {
    padding: 8px 0;
}

.mini-table td:last-child {
    text-align: right;
    color: #999;
    font-size: 12px;
}

/* Form Inline */
.form-inline {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.form-inline .form-group {
    margin-bottom: 0;
    flex: 1;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .btn-sm {
    padding: 8px 15px;
}

/* Badge Colors */
.badge-login {
    background: #2ecc71;
    color: white;
}

.badge-logout {
    background: #e74c3c;
    color: white;
}

.badge-add {
    background: #3498db;
    color: white;
}

.badge-edit {
    background: #f39c12;
    color: white;
}

.badge-delete {
    background: #e74c3c;
    color: white;
}

/* Responsive Improvements */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-inline {
        flex-direction: column;
    }
    
    .form-inline .form-group {
        width: 100%;
    }
    
    .activity-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Print Styles */
@media print {
    .header, .btn-logout, .action-buttons {
        display: none !important;
    }
    
    .container {
        padding: 0 !important;
    }
    
    .data-table {
        box-shadow: none !important;
    }
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 30px;
    border-top: 4px solid #667eea;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 25px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-brand .footer-logo i {
    color: #667eea;
    margin-right: 8px;
}

.footer-brand .footer-logo span {
    color: #667eea;
}

.footer-brand .footer-desc {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a,
.footer-section ul li {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-section ul li a i {
    font-size: 10px;
    color: #667eea;
}

.footer-section ul li i {
    color: #667eea;
    width: 18px;
    font-size: 13px;
}

.footer-bottom {
    padding: 15px 0 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-content .copyright {
    color: #bdc3c7;
    font-size: 13px;
}

.footer-bottom-content .copyright strong {
    color: #ecf0f1;
}

.footer-bottom-content .version {
    color: #667eea;
    font-size: 13px;
}

.footer-bottom-content .version i {
    margin-right: 4px;
}

/* ===== SIMPLE FOOTER ===== */
.footer-simple {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 30px;
    padding: 15px 25px;
    border-top: 3px solid #667eea;
}

.footer-simple-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-simple-left,
.footer-simple-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.footer-brand {
    color: white;
    font-weight: 600;
}

.footer-brand i {
    color: #667eea;
    margin-right: 5px;
}

.footer-divider {
    color: rgba(255,255,255,0.2);
}

.footer-copy {
    color: #bdc3c7;
}

.footer-version {
    color: #667eea;
}

.footer-user {
    color: #bdc3c7;
}

.footer-user i {
    color: #667eea;
    margin-right: 4px;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-brand .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-simple-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-simple-left,
    .footer-simple-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 20px 15px 0;
    }
    
    .footer-content {
        padding: 0;
    }
}