/* DijitA Ortak CSS Değişkenleri */
:root {
    /* Ana Renkler */
    --color-primary: #1e3c72;
    --color-primary-light: #2a5298;
    --color-primary-dark: #152a52;

    /* Yardımcı Renkler */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-background-light: #f8f9fa;
    --color-border: #e0e0e0;

    /* Canvas Arka Plan */
    --color-canvas-bg: #c8d3de;

    /* Aksiyonlar */
    --color-success: #28a745;
    --color-success-dark: #218838;
    --color-warning: #ffc107;
    --color-warning-dark: #e0a800;
    --color-danger: #dc3545;
    --color-danger-dark: #c82333;
    --color-info: #17a2b8;
    --color-info-dark: #138496;

    /* Durum Arka Planları */
    --color-success-bg: #d4edda;
    --color-success-border: #c3e6cb;
    --color-danger-bg: #f8d7da;
    --color-danger-border: #f5c6cb;
    --color-warning-bg: #fff3cd;
    --color-warning-border: #ffeaa7;
    --color-info-bg: #e3f2fd;

    /* Tipografi */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.85rem;    /* 13.6px */
    --font-size-base: 0.9rem;   /* 14.4px */
    --font-size-md: 1rem;       /* 16px */
    --font-size-lg: 1.1rem;     /* 17.6px */
    --font-size-xl: 1.25rem;    /* 20px */

    /* Genel */
    --border-radius: 6px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-component: 0 2px 8px rgba(0,0,0,0.15);
    --transition: all 0.2s ease;

    /* Panel Boyutları */
    --panel-width-sm: 240px;
    --panel-width-md: 280px;
    --panel-width-lg: 320px;

    /* Header */
    --header-height: 56px;
    --header-padding: 0 1.5rem;
}

/* ===== ORTAK STİLLER ===== */

/* Standart Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    height: var(--header-height);
    padding: var(--header-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.page-header .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header .header-icon {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.page-header .header-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
}

.page-header .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Standart Butonlar */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

.btn-primary:hover {
    background: var(--color-primary-light);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-background-light);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: var(--color-success-dark);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background: var(--color-danger-dark);
}

.btn-info {
    background: var(--color-info);
    color: white;
}

.btn-info:hover {
    background: var(--color-info-dark);
}

.btn-warning {
    background: var(--color-warning);
    color: #000;
}

.btn-warning:hover {
    background: var(--color-warning-dark);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: var(--font-size-sm);
}

.btn:active {
    transform: scale(0.98);
}

/* Header içindeki butonlar */
.page-header .btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-header .btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== FORM ELEMANLARI ===== */

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

.form-group label {
    display: block;
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.1);
}

/* ===== MODAL ===== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ===== DURUM BADGE'LERİ ===== */

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-top: 0.5rem;
}

.status-success {
    background: var(--color-success-bg);
    color: #155724;
    border: 1px solid var(--color-success-border);
}

.status-error {
    background: var(--color-danger-bg);
    color: #721c24;
    border: 1px solid var(--color-danger-border);
}

.status-warning {
    background: var(--color-warning-bg);
    color: #856404;
    border: 1px solid var(--color-warning-border);
}

/* ===== FOOTER LOGO ===== */

.footer-logo {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    height: 50px;
    width: auto;
    opacity: 0.6;
    z-index: 100;
    pointer-events: none;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 0.8;
}

/* ===== LOADING & EMPTY STATE ===== */

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-background-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===== NOTIFICATION ===== */

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 300px;
    max-width: 400px;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.active {
    transform: translateY(0);
    opacity: 1;
}

.notification.success { border-left: 4px solid var(--color-success); }
.notification.error { border-left: 4px solid #e74c3c; }
.notification.warning { border-left: 4px solid #f39c12; }
.notification.info { border-left: 4px solid #3498db; }

/* ===== MOBİL ORTAK ===== */

@media (max-width: 768px) {
    .footer-logo {
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}
