/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header i {
    font-size: 1.6rem;
    color: #ffd700;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    cursor: pointer;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid transparent;
    font-size: 1rem;
}

.sidebar-nav li i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-nav li:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #ffd700;
}

.sidebar-nav li.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left-color: #ffd700;
    font-weight: 600;
}

/* ============================================
   SIDEBAR TOGGLE BUTTON (MOBILE)
   ============================================ */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.container {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
}

.container.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HEADINGS
   ============================================ */
h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
    margin-bottom: 2rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
input, select, button, textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border: none;
    color: white;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    min-width: 800px;
}

table th, table td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

table tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transition: background-color 0.2s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(102, 126, 234, 0.03);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-backdrop.show {
    opacity: 0.7;
}

.modal-dialog {
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    border: none;
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    font-size: 1.3rem;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body .table-responsive {
    max-height: 50vh;
    overflow-y: auto;
}

#oyuncu-detay-baslik {
    color: #2c3e50;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#oyuncu-detay-baslik i {
    color: #667eea;
}

.badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.no-data {
    padding: 3rem 1rem !important;
    font-size: 1.1rem;
}

.no-data i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #999;
}

.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #dee2e6;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
.modal-body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 5rem 1.5rem 1.5rem;
    }
    
    .modal-xl {
        max-width: 95%;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }
    
    table {
        min-width: 900px;
    }
    
    table th, table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .sidebar {
        width: 260px;
    }
    
    .sidebar-header h3 {
        font-size: 1.2rem;
    }
    
    .sidebar-nav li {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    .main-content {
        padding: 4.5rem 1rem 1rem;
    }
    
    .container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 1rem;
        border-radius: 10px 10px 0 0;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-title i {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 55vh;
    }
    
    #oyuncu-detay-baslik {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    table {
        font-size: 0.85rem;
        min-width: 700px;
    }
    
    table th, table td {
        padding: 0.6rem 0.5rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    table th i {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .sidebar {
        width: 240px;
    }
    
    .sidebar-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 4rem 0.75rem 0.75rem;
    }
    
    .container {
        padding: 1rem;
        border-radius: 10px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    input, select, button, textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .sidebar-nav li {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    table th, table td {
        padding: 0.5rem 0.4rem;
    }
    
    .btn-sm {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .modal-dialog {
        margin: 0.25rem;
        max-width: 100%;
    }
    
    .modal-body {
        max-height: 50vh;
        padding: 0.75rem;
    }
    
    .modal-header, .modal-footer {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-title i {
        font-size: 0.9rem;
    }
    
    #oyuncu-detay-baslik {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    table th i {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.show .modal-dialog {
    animation: modalFadeIn 0.3s ease-out;
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

/* ============================================
   TABLE ENHANCEMENTS  
   ============================================ */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}
/* ============================================
   ÖZEL İSTEK: TAKIM EKLE HARİCİNDEKİ SAYFALARDA TABLOYU GİZLE
   ============================================ */
#oyuncu-ekle .table-responsive,
#mac-ekle .table-responsive,
#oyuncu-verisi-ekle .table-responsive {
    display: none;
}
