/* Mergen Portal - Ana Stil Dosyası */

:root {
    --primary: #1e3a5f;
    --primary-light: #2e5a8f;
    --primary-dark: #152d4a;
    --accent: #d4a853;
    --accent-hover: #c49643;
    --success: #059669;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --surface: #ffffff;
    --surface-alt: #f8f9fa;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-light: rgba(255, 255, 255, 0.9);
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
    --shadow: 0 4px 24px rgba(30, 58, 95, 0.12);
    --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.18);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: url('../Images/ArkaFon.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
    position: relative;
    z-index: 1;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header .brand {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header .brand h1 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-header .page-title {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
}

/* Card */
.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    margin-bottom: 16px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea,
.dxeEditArea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--surface-alt);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.dxeEditArea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary,
.btn-primary .dxbButton {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover,
.btn-primary .dxbButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
}

.btn-secondary,
.btn-secondary .dxbButton {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary .dxbButton:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-success,
.btn-success .dxbButton {
    background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-success:hover,
.btn-success .dxbButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-danger,
.btn-danger .dxbButton {
    background: var(--danger);
    color: white;
}

.btn-danger:hover,
.btn-danger .dxbButton:hover {
    background: #b91c1c;
}

.btn-block {
    width: 100%;
}

/* Grid */
.grid-container {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.summary-box .label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.summary-box .value {
    font-size: 24px;
    font-weight: 700;
}

/* Info Row */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-row .value {
    font-weight: 600;
    font-size: 15px;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .page-container {
        padding: 16px 12px;
    }

    .card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .page-header .page-title {
        font-size: 18px;
    }

    .form-group input,
    .dxeEditArea {
        padding: 12px 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .page-container {
        max-width: 700px;
    }
}

