:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #818cf8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --bg-light: #f1f5f9;
}

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

/* Temel sayfa yapısı için */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 61px; /* Header yüksekliği */
    margin-bottom: 45px; /* Footer yüksekliği */
}

.login-box {
    background: white;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
}

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

.app-logo {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.app-logo i {
    font-size: 2rem;
    color: white;
}

.login-header h1 {
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-form {
    margin-bottom: 2rem;
}

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

.input-group {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.9rem 1.2rem;
}

.form-control {
    border: none;
    padding: 0.9rem 1.2rem;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--primary);
    border: none;
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.2) 10%,
        rgba(255,255,255,0.4) 20%,
        rgba(255,255,255,0.2) 30%,
        rgba(255,255,255,0) 40%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }
}

/* Modern Header Styles */
.main-header {
    background: white;
    padding: 0.85rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.header-logo i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.header-logo:hover {
    color: var(--primary);
    background: var(--bg-light);
}

/* Header Nav Styles */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

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

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-link {
    position: relative;
    padding: 0.5rem;
    color: var(--text-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 30px;
    border: 2px solid white;
}

.user-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.7rem;
    background: var(--bg-light);
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.user-menu-link:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-info {
    margin: 0 0.3rem;
    line-height: 1.2;
}

.user-name {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.user-role {
    color: var(--text-light);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-role i {
    font-size: 0.35rem;
    color: var(--success);
}

/* Dropdown Styles */
.dropdown-menu {
    margin-top: 0.6rem;
    padding: 0.4rem;
    border: none;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.dropdown-item i {
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.2s;
}

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

.dropdown-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.dropdown-item.text-danger:hover i {
    color: var(--danger);
}

/* Main Content Adjustment */
.main-content {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    padding: 4rem 0 2rem 0;
    margin-top: 1rem;
}

/* Footer Styles */
.main-footer {
    background: white;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
}

.footer-version {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--primary-dark);
}

/* Header nav'a eklenecek buton stili */
.btn-register {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-register:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-1px);
}

/* Header nav'ı için margin ayarı */
.header-nav .nav-link:not(:last-child) {
    margin-right: 0.5rem;
}

/* Footer link stili */
.footer-text a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 61px; /* Header yüksekliği */
    margin-bottom: 45px; /* Footer yüksekliği */
}

/* Modern Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, white, var(--bg));
    width: 280px;
    border-right: 1px solid var(--border);
    height: calc(100vh - 61px);
    position: fixed;
    left: 0;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.02);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-header {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 1.25rem 1rem 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(79, 70, 229, 0.2), 
        rgba(79, 70, 229, 0.1) 50%, 
        transparent
    );
}

.menu-item {
    padding: 0.2rem 0.5rem;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(79, 70, 229, 0.1), 
        rgba(79, 70, 229, 0.05)
    );
    transition: width 0.3s ease;
}

.menu-link:hover::before {
    width: 100%;
}

.menu-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.menu-link.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-text {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Her menü öğesi için özel renkler ve efektler */
.menu-link[href="dashboard.php"] .menu-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    color: var(--primary);
}

.menu-link[href="gelirler.php"] .menu-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success);
}

.menu-link[href="giderler.php"] .menu-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--danger);
}

.menu-link[href="raporlar.php"] .menu-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: var(--warning);
}

.menu-link[href="kullanicilar.php"] .menu-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: var(--info);
}

.menu-link[href="mesajlar.php"] .menu-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.menu-link[href="ayarlar.php"] .menu-icon {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.1), rgba(75, 85, 99, 0.05));
    color: #4b5563;
}

/* Aktif menü stilleri */
.menu-link.active .menu-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.menu-link.active .menu-text {
    font-weight: 600;
}

/* Hover efektleri */
.menu-link:hover .menu-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Menü grupları arası ayırıcı */
.menu-header:not(:first-child) {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Menü ikonları için özel renkler ve stiller */
.menu-link .menu-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

/* Her menü öğesi için özel renkler */
.menu-link[href="dashboard.php"] .menu-icon {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.menu-link[href="gelirler.php"] .menu-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.menu-link[href="giderler.php"] .menu-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.menu-link[href="raporlar.php"] .menu-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.menu-link[href="kullanicilar.php"] .menu-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.menu-link[href="mesajlar.php"] .menu-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.menu-link[href="ayarlar.php"] .menu-icon {
    background: rgba(75, 85, 99, 0.1);
    color: #4b5563;
}

/* Aktif menü öğesi için ikon stili */
.menu-link.active .menu-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Hover durumunda ikon stili */
.menu-link:hover .menu-icon {
    transform: scale(1.1) rotate(-10deg);
    background: white;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--bg);
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, transparent, rgba(79, 70, 229, 0.03));
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--bg-light);
    position: relative;
    z-index: 1;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

/* Kullanıcı menüsü stilleri */
.user-menu {
    display: flex;
    align-items: center;
}

.user-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-menu-link:hover {
    background: var(--bg);
    color: var(--text);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
}

.nav-link {
    position: relative;
}

/* Dropdown menü stilleri */
.dropdown-menu {
    padding: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Table Styles */
.card {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.table {
    margin: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 1rem 1.75rem;
    background: var(--bg-light);
    border: none;
}

.table td {
    padding: 1.1rem 1.75rem;
    vertical-align: middle;
    color: var(--text);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.badge {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success);
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger);
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Çıkış butonu için özel stil */
.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-item.text-danger i {
    color: var(--danger);
}

/* Çıkış animasyonu */
.dropdown-item.text-danger:hover i {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Header nav butonları için özel stil */
.user-menu .header-nav {
    display: flex;
    gap: 0.5rem;
}

.user-menu .nav-link {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.user-menu .nav-link:hover {
    color: var(--primary);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.user-menu .nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
    opacity: 0.7;
}

/* Kullanıcılar sayfası için ek stiller */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.breadcrumb {
    margin: 0;
    padding: 0.5rem 0;
    background: transparent;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text);
}

.btn-group .btn {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
}

.btn-group .btn:hover {
    background: var(--bg-light);
}

.table td {
    vertical-align: middle;
}

.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
}

.badge.bg-primary {
    background: rgba(79, 70, 229, 0.1) !important;
    color: var(--primary);
}

.badge.bg-secondary {
    background: rgba(100, 116, 139, 0.1) !important;
    color: var(--text-light);
} 