/* ===================================================================
   PREMIUM & MODERN THEME
   =================================================================== */

:root {
    --premium-primary: var(--primary-color);
    --premium-secondary: var(--secondary-color);
    --premium-dark: var(--dark-color);
    --premium-light: var(--light-color);
    --premium-bg: var(--light-color); /* Hafif gri arka plan */
    --premium-border-color: var(--light-color);
    --premium-border-radius: var(--border-radius); /* Daha yuvarlak köşeler */
    --premium-box-shadow: var(--box-shadow);
    --premium-box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --premium-gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

body {
    background-color: var(--premium-bg);
}

/* ===================================================================
   KARTLAR (CARDS)
   =================================================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--premium-box-shadow-hover);
}

.card .card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--premium-border-color);
    font-weight: 600;
}

/* Helper class to fix stacking context issues */
.keep-on-top {
    position: relative;
    z-index: 2; /* Increased z-index for more robustness */
    will-change: transform; /* Promote to its own layer to prevent rendering bugs */
}

/* ===================================================================
   UTILITIES
   =================================================================== */
.bg-soft-info {
    background-color: rgba(13, 202, 240, 0.15) !important;
    border-color: rgba(13, 202, 240, 0.2) !important;
    color: #0c5460;
}

.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.2) !important;
    color: #856404;
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    color: #721c24;
}

/* Placeholder for any future utilities */

/* ===================================================================
   WHEEL OF FORTUNE
   =================================================================== */
#wheel-container {
    position: relative;
    display: inline-block;
    padding: 5px;
    background: #e0e0e0;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.2), 
        0 0 20px rgba(0,0,0,0.1);
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 50px solid #c0392b; /* A nice red color */
    z-index: 10;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.3));
    transition: transform 0.2s ease-out;
}

#wheel-container:hover .wheel-pointer {
    transform: translateX(-50%) translateY(-5px) scale(1.05);
}

#wheel {
    display: block;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.15));
}

/* ===================================================================
   BUTONLAR (BUTTONS)
   =================================================================== */
.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease-in-out;
}

.btn-primary {
    background-image: var(--premium-gradient);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.3);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 15px rgba(0, 198, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--premium-primary);
    color: var(--premium-primary);
}

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

/* ===================================================================
   FORMLAR (FORMS & INPUTS)
   =================================================================== */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--premium-border-color);
    padding: 0.75rem 1.1rem;
    background-color: var(--premium-light);
    transition: all var(--transition-speed) ease-in-out;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* ===================================================================
   TABLOLAR (TABLES)
   =================================================================== */
.table {
    border-collapse: separate;
    border-spacing: 0 10px; /* Satırlar arası boşluk */
}

.table thead th {
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--premium-secondary);
}

.table tbody tr {
    background-color: #fff;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.table tbody tr:hover {
    transform: scale(1.02);
    box-shadow: var(--premium-box-shadow-hover);
    position: relative;
    z-index: 1;
}

.table td, .table th {
    border: none;
    vertical-align: middle;
}
    
.table td:first-child, .table th:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.table td:last-child, .table th:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
} 