/**
 * ================================================
 * EXCELDEPO - GLOBAL CSS
 * ================================================
 * Her sayfada yüklenir - Temel stilleri içerir
 * Version: 1.0
 * Updated: 29 Ocak 2026
 */

/* ===== FONT IMPORT ===== */
@import url('fonts.css');

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Excel Green Theme */
    --color-primary: #217346;
    --color-primary-dark: #1a5c38;
    --color-primary-light: #2d9d5d;

    /* Secondary Colors */
    --color-secondary: #1e3a5f;
    --color-secondary-dark: #152a45;
    --color-secondary-light: #2a5082;

    /* Accent Colors */
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Light Mode */
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-border: #e0e0e0;

    /* Shadows */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 10px;
    --radius-lg: 10px;
    --radius-xl: 10px;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions - DISABLED for stability */
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;

    /* Font Awesome Duotone Colors */
    --fa-primary-color: var(--color-primary);
    --fa-secondary-color: var(--color-primary-light);
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.4;
}

/* ===== DARK MODE VARIABLES ===== */
html.dark {
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #121212;
    --color-text: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-border: #262626;

    --color-primary: #ffffff;
    --color-primary-dark: #cccccc;
    --color-primary-light: #eeeeee;

    --color-secondary: #a1a1aa;
    --color-accent: #ffffff;

    --color-success: #ffffff;
    --color-warning: #ffffff;
    --color-error: #ff4444;
    --color-info: #ffffff;

    --fa-primary-color: #ffffff;
    --fa-secondary-color: #666666;
    --fa-secondary-opacity: 1;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: none !important;
    transition-duration: 0s !important;
    animation: none !important;
    animation-duration: 0s !important;
}

html {
    scroll-behavior: auto !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html.dark body {
    background-color: #000000 !important;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

p {
    margin-bottom: 1rem;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Page Wrapper - Tüm sayfalar için */
.wrapper {
    width: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    background: #f4f6f8;
    min-height: 100vh;
}

html.dark .main-content {
    background: #000;
}

@media (min-width: 768px) {
    .main-content {
        padding-top: 72px;
    }
}

/* Home page - no padding top (header is transparent) */
body.home-page .main-content {
    padding-top: 0;
}







/* ===== ALERTS ===== */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-success);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-error);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--color-warning);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--color-info);
}

/* ===== GLOBAL MAIN HEADER ===== */
.main-header {
    /* Varsayılan Tema (Yeşil) */
    --header-bg: #2B542C;
    --header-bg-light: #DFF0D8;
    --header-text: #ffffff;

    background-color: var(--header-bg);
    padding: 10px;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Header Title Typography */
.main-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--header-bg-light);
    /* Açık renk metin */
    margin: 0;
}

/* Renk Temaları */
.theme-blue {
    --header-bg: #245269;
    --header-bg-light: #D9EDF7;
}

.theme-yellow {
    --header-bg: #66512C;
    --header-bg-light: #FCF8E3;
}

.theme-red {
    --header-bg: #843534;
    --header-bg-light: #F2DEDE;
}

.theme-green {
    /* Varsayılan ile aynı ama explicit kullanım için */
    --header-bg: #2B542C;
    --header-bg-light: #DFF0D8;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.d-none {
    display: none !important;
}

.d-inline-block {
    display: inline-block !important;
}

.hidden {
    display: none !important;
}

html.dark .d-dark-inline-block {
    display: inline-block !important;
}

html.dark .d-dark-none {
    display: none !important;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* ===== MOBILE MENU ===== */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    z-index: 999;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.25rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    border-bottom: 1px solid var(--color-border) !important;
    text-decoration: none !important;
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    color: var(--color-primary);
}

/* NUCLEAR SHADOW REMOVAL */
*,
::after,
::before {
    box-shadow: none !important;
    text-shadow: none !important;
}


/* ===== GLOBAL PAGE GRID ===== */
.page-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    position: relative;
    /* Default: Right Sidebar */
    grid-template-columns: 1fr 340px;
    margin-bottom: 3.5rem;
}

.page-grid>* {
    min-width: 0;
}


.page-grid.sidebar-left {
    grid-template-columns: 340px 1fr;
}

/* Ensure sidebar appears on the left visually even if it's second in DOM */
.page-grid.sidebar-left>aside,
.page-grid.sidebar-left>.sidebar-sticky {
    order: -1;
}

@media (max-width: 991px) {

    .page-grid,
    .page-grid.sidebar-left {
        grid-template-columns: 1fr;
    }
}

/* Common Sticky Sidebar */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: calc(72px + 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
}

/* Sidebar & Content Standartization */
.page-sidebar {
    min-width: 0;
    align-self: stretch;
    /* Necessary for sticky sidebar to have track to scroll within */
}

.page-content {
    min-width: 0;
}


/* --- Explicit Grid Layout Modifiers (Fixes Layout Issues) --- */
.page-grid-left {
    grid-template-columns: 340px 1fr !important;
}

.page-grid-right {
    grid-template-columns: 1fr 340px !important;
}

/* Ensure sidebar is left on desktop for left layout */
.page-grid-left>.page-sidebar,
.page-grid-left>aside,
.page-grid-left>.sidebar-sticky {
    order: -1;
}

@media (max-width: 991px) {

    .page-grid-left,
    .page-grid-right {
        grid-template-columns: 1fr !important;
    }
}

/* END OF GLOBAL CSS */