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

html {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

body {
    height: auto;
    min-height: 100vh;
}

*:focus {
    outline: none !important;
}

input:focus,
button:focus,
textarea:focus,
select:focus {
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input {
    caret-color: #666 !important;
    caret-width: 1px !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #304d8f 0%, #1a2e5c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    margin: 0;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.plane-silhouette {
    position: absolute;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.plane-1 {
    top: 20%;
    right: -200px;
    animation-delay: 0s;
}

.plane-2 {
    top: 60%;
    left: -150px;
    animation-delay: -10s;
}

.plane-3 {
    top: 40%;
    right: -180px;
    animation-delay: -15s;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-50px) translateY(-20px);
    }

    50% {
        transform: translateX(-100px) translateY(10px);
    }

    75% {
        transform: translateX(-30px) translateY(-15px);
    }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.logo-gaca {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #304d8f 0%, #1a2e5c 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(69, 97, 219, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.logo-rushd {
    background: linear-gradient(135deg, #304d8f 0%, #1a2e5c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.system-title {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.5;
}

.welcome-text {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin: 18px 0 8px;
}

.sub-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 35px;
}

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

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9ff;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    caret-color: #666;
    direction: rtl;
    text-align: right;
}

.form-control::-webkit-text-fill-color {
    color: #333;
}

.form-control::-webkit-input-placeholder {
    color: #94a3b8;
}

.form-control::-moz-placeholder {
    color: #94a3b8;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none !important;
    border-color: #304d8f;
    background: white;
    box-shadow: 0 0 0 4px rgba(69, 97, 219, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #304d8f;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-control:focus+.input-icon {
    transform: translateY(-50%) scale(1.1);
}

.password-toggle {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
}

.password-toggle:hover {
    color: #304d8f;
    background: rgba(69, 97, 219, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:focus {
    outline: none !important;
    color: #304d8f;
    background: rgba(69, 97, 219, 0.1);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #304d8f 0%, #1a2e5c 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 8px 20px rgba(69, 97, 219, 0.3);
    margin-top: 10px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(69, 97, 219, 0.4);
}

.login-btn:focus {
    outline: none !important;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.loading {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.forgot-password {
    text-align: center;
    margin-top: 25px;
}

.forgot-password a {
    color: #304d8f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
}

.forgot-password a:hover {
    color: #2c3e50;
    background: rgba(69, 97, 219, 0.1);
}

.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid;
}

.error-message {
    background: #fef2f2;
    color: #ef4444;
    border-left-color: #ef4444;
}

.success-message {
    background: #f0fdf4;
    color: #10b981;
    border-left-color: #10b981;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.floating {
    animation: containerFloat 4s ease-in-out infinite;
}

@keyframes containerFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 30px;
        min-height: 100vh;
    }

    .login-container {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .logo-section {
        flex-direction: column;
        gap: 15px;
    }

    .logo-gaca {
        width: 50px;
        height: 50px;
    }

    .logo-rushd {
        font-size: 36px;
    }

    .welcome-text {
        font-size: 20px;
    }

    .system-title {
        font-size: 14px;
        padding: 0 15px;
    }

    .form-control {
        padding: 14px 45px 14px 15px;
    }

    .input-icon {
        right: 15px;
        font-size: 16px;
    }

    .password-toggle {
        left: 15px;
        font-size: 16px;
    }

    .login-btn {
        padding: 16px 20px;
        font-size: 16px;
    }

    .plane-2,
    .plane-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-top: 20px;
        min-height: 100vh;
    }

    .login-container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .logo-gaca {
        width: 45px;
        height: 45px;
    }

    .logo-rushd {
        font-size: 28px;
    }

    .welcome-text {
        font-size: 18px;
    }

    .system-title {
        font-size: 12px;
    }

    .form-control {
        padding: 12px 40px 12px 12px;
        font-size: 14px;
    }

    .input-icon {
        right: 12px;
        font-size: 14px;
    }

    .password-toggle {
        left: 12px;
        font-size: 14px;
    }

    .login-btn {
        padding: 14px 18px;
        font-size: 14px;
    }

    .login-container,
    .logo-gaca {
        animation: none;
    }

    .particles,
    .plane-silhouette {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particles,
    .plane-silhouette {
        display: none;
    }
}

@media print {
    body {
        background: white !important;
    }

    .bg-animation,
    .particles,
    .plane-silhouette {
        display: none !important;
    }

    .login-container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: white !important;
    }
}

.reports-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s ease-out;
    max-width: 1400px;
    margin: 0 auto;
}

.reports-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 30px;
}

.page-title {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.date-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.date-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e6ed;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    color: #666;
}

.date-filter-btn.active,
.date-filter-btn:hover {
    border-color: #304d8f;
    background: #304d8f;
    color: white;
    transform: translateY(-2px);
}

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


.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    min-width: 80px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.nav-text {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .nav-menu {
        margin: 0 1rem;
    }

    .nav-list {
        gap: 0.3rem;
        padding: 0.3rem;
    }

    .nav-link {
        padding: 0.6rem 0.8rem;
        min-width: 60px;
    }

    .nav-text {
        font-size: 0.7rem;
    }

    .nav-icon {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        order: 2;
        margin: 0;
    }

    .status-bar {
        order: 3;
        gap: 1rem;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 0.5rem 0.6rem;
        min-width: 50px;
    }

    .nav-text {
        display: none;
    }

    .nav-icon {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
}

.nav-link:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.25);
}

.nav-item:hover .notification-badge {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    20%,
    60%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-3px) scale(1.1);
    }

    80% {
        transform: translateY(-1px) scale(1.05);
    }
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(69, 97, 219, 0.1);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.stat-icon.emissions {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-icon.savings {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.alerts {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.efficiency {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

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

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.stat-change.positive {
    background: #dcfce7;
    color: #166534;
}

.stat-change.negative {
    background: #fef2f2;
    color: #dc2626;
}

.charts-section {
    margin-bottom: 40px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(69, 97, 219, 0.1);
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.chart-canvas {
    max-height: 300px;
}

.kpi-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(69, 97, 219, 0.1);
    margin-bottom: 30px;
}

.kpi-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

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

.kpi-item {
    text-align: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: #304d8f;
    margin-bottom: 5px;
}

.kpi-label {
    color: #666;
    font-size: 14px;
}

.download-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e7ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(69, 97, 219, 0.2);
}

.download-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.download-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn.pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.download-btn.excel {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

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

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reports-container {
        padding: 25px;
    }

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

    .date-filters {
        flex-direction: column;
        align-items: center;
    }
}