:root {
    --primary: #e63946;
    --dark: #1d3557;
    --light: #f1faee;
    --accent: #a8dadc;
    --bg-main: #f8f9fa;
    --white: #ffffff;
    --sidebar-w: 260px;
    --header-h: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    /* Fix horizontal scroll */
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, #457b9d 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
}

.logo-text span {
    color: var(--dark);
    /* Giriş sayfasında koyu olmalı */
}

/* Sidebar Brand Modern Styling */
.sidebar-brand {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.brand-name span {
    color: var(--primary);
}

.client-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

.error-msg {
    background: #ffd6d6;
    color: #d8000c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Dashboard Layout */
.wrapper {
    display: flex;
}

.sidebar {
    width: var(--sidebar-w);
    background-color: var(--dark);
    min-height: 100vh;
    position: fixed;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding-top: 20px;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - var(--sidebar-w));
}

/* Main Header */
.top-header {
    height: var(--header-h);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navigation */
.nav-menu {
    list-style: none;
    padding: 20px 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.logout-btn {
    color: #ffadad;
    margin-top: 50px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #f0f4f8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 15px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .sidebar {
        left: -100%;
        width: 100%;
        max-width: 300px;
    }

    .sidebar.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-header {
        padding: 0 15px;
    }

    .content-padding {
        padding: 20px 15px;
    }
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-right: 15px;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 991px) {
    .sidebar.active .close-sidebar {
        display: block;
    }
}

.content-padding {
    padding: 30px;
}

.box {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Support Box */
.support-box {
    margin-top: 30px;
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.support-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.support-icon {
    width: 50px;
    height: 50px;
    background: #eef2f7;
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.support-title-group h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.support-title-group p {
    font-size: 0.9rem;
    color: #666;
}

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

.contact-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    border: 1px solid transparent;
}

.contact-card:hover {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.contact-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    color: white;
}

.wa-btn {
    background: #25d366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.wa-btn:hover {
    background: #128c7e;
    transform: scale(1.05);
}

.call-btn {
    background: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.call-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 991px) {
    .sidebar.active+.main-content .sidebar-overlay {
        display: block;
    }
}