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

:root {
    --primary-color: #55A7E5;
    --secondary-color: #464d82;
    --accent-color: #e2498a;
    --success-color: #00d084;
    --warning-color: #fcb900;
    --danger-color: #cf2e2e;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-tekbay: linear-gradient(135deg, #55A7E5 0%, #464d82 100%);
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--gradient-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.login-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-box {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
    border-top: 5px solid var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.brand-title {
    font-size: 36px;
    color: var(--secondary-color);
    font-weight: 900;
    margin-bottom: 8px;
    background: var(--gradient-tekbay);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tagline-sub {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    margin-right: 5px;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(85, 167, 229, 0.1);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--gradient-tekbay);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 4px 15px rgba(85, 167, 229, 0.3);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(85, 167, 229, 0.5);
}

.btn-login i {
    margin-right: 8px;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.login-footer p {
    color: var(--text-light);
    font-size: 13px;
    background: var(--light-bg);
    padding: 10px;
    border-radius: 8px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--light-bg);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 45px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-text h2 {
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    color: var(--text-light);
}

.nav-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-item:hover i {
    color: var(--primary-color);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(85, 167, 229, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.nav-item.active i {
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
}

.btn-logout:hover {
    background: #b02525;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--white);
    padding: 25px 40px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 40px;
    height: auto;
}

.header-titles h1 {
    font-size: 28px;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 5px;
}

.header-titles p {
    color: var(--text-light);
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cloud-selector {
    display: flex;
    gap: 10px;
    background: var(--light-bg);
    padding: 5px;
    border-radius: 10px;
}

.cloud-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-family: 'Nunito', sans-serif;
}

.cloud-btn:hover {
    background: var(--white);
}

.cloud-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.cloud-btn i {
    margin-right: 6px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--light-bg);
    border-radius: 10px;
    color: var(--secondary-color);
    font-weight: 600;
}

.user-profile i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Content Area */
.content-area {
    padding: 40px;
    flex: 1;
}

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

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-tekbay);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-card-title {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-card-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-card-change {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-card-change.positive {
    color: var(--success-color);
}

.stat-card-change.negative {
    color: var(--danger-color);
}

/* Chart Cards */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.chart-card:hover {
    border-top-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.chart-card-header {
    margin-bottom: 25px;
}

.chart-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.chart-card-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

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

/* Reports Section */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.report-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.report-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.report-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.report-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-download {
    width: 100%;
    padding: 12px;
    background: var(--gradient-tekbay);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 2px 8px rgba(85, 167, 229, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 167, 229, 0.5);
}

/* Tables */
.table-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

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

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

thead {
    background: var(--light-bg);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

tr:hover {
    background: var(--light-bg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(0, 208, 132, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(252, 185, 0, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(207, 46, 46, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(85, 167, 229, 0.1);
    color: var(--primary-color);
}

/* Footer */
.dashboard-footer {
    background: var(--white);
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-logo {
    width: 25px;
    height: auto;
}

.footer-content strong {
    background: var(--gradient-tekbay);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
    }

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

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

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

