﻿.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

    .user-menu:hover {
        background-color: var(--secondary);
    }

    .user-menu img {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        object-fit: cover;
    }

/* Login Form Styles */
.login-container {
    height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.login-card {
    width: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h2 {
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .login-header p {
        color: var(--text-light);
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(0, 128, 128, 0.25);
    }

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .btn:active {
        transform: translateY(1px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .btn::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(255, 255, 255, 0.2);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease-out;
    }

    .btn:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

.btn-primary {
    color: #fff;
    background: #00849b;
}

    .btn-primary:hover {
        background: #00849b;
    }

.btn-block {
    display: block;
    width: 100%;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 2rem 0;
    display: none;
}

.page-title {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar-container {
    background-color: #00849b96;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 25%; /* First step of four */
}

/* Stats Dashboard */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        opacity: 0.2;
        z-index: 0;
    }

.stat-pending::before {
    background-color: #ff9800;
}

.stat-completed::before {
    background-color: #4caf50;
}

.stat-paid::before {
    background-color: #2196f3;
}

.stat-revisit::before {
    background-color: #9c27b0;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-pending .stat-value {
    color: #ff9800;
}

.stat-completed .stat-value {
    color: #4caf50;
}

.stat-paid .stat-value {
    color: #2196f3;
}

.stat-revisit .stat-value {
    color: #9c27b0;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.change-up {
    color: #4caf50;
}

.change-down {
    color: #f44336;
}

.stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.8;
    z-index: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 128, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0);
    }
}

.stat-animation {
    animation: pulse 2s infinite;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

    .table th, .table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    .table th {
        background-color: var(--secondary);
    }

.status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info);
    color: white;
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: white;
}

.new-violation {
    margin-top: 1.5rem;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .login-card {
        width: 95%;
        max-width: 400px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .header-content {
        flex-direction: column;
        padding: 1rem;
    }

    .header-actions {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}
