/* Basketball Manager - Luxuriöses Premium Design */

:root {
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a2e;
    --primary-deep: #0f0f1e;
    --accent-blue: #4a90e2;
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --text-light: #ecf0f1;
    --text-muted: #95a5a6;
    --card-bg: #16213e;
    --card-hover: #1f2d4a;
    --border-gold: rgba(212, 175, 55, 0.3);
    --shadow-gold: rgba(212, 175, 55, 0.15);
    
    /* Zusätzliche Variablen für Kompatibilität */
    --bg-primary: #1a1a2e;
    --bg-secondary: #252736;
    --bg-card: #16213e;
    --text-primary: #ecf0f1;
    --text-secondary: #95a5a6;
    --border-color: rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Premium Header */
.premium-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-gold);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-gold);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.team-branding img,
.team-logo-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 20px var(--shadow-gold);
    transition: transform 0.3s ease;
}

.team-logo-large:hover {
    transform: scale(1.1) rotate(5deg);
}

.team-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-gold), #f4e6c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.team-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-premium,
.button.btn-primary {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-gold), #c49a2f);
    color: var(--primary-deep) !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-gold);
    cursor: pointer;
}

.btn-premium:hover,
.button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-gold);
    background: linear-gradient(135deg, #e5c047, var(--primary-gold));
    color: var(--primary-deep) !important;
}

.btn-logout {
    background: rgba(231, 76, 60, 0.2) !important;
    color: var(--accent-red) !important;
    border: 1px solid var(--accent-red);
}

.btn-logout:hover {
    background: var(--accent-red) !important;
    color: white !important;
}

.button.back-link,
.button.btn-secondary {
    background: var(--card-bg) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-gold);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 3rem;
}

/* Stats Overview Bar */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    box-shadow: 0 8px 30px var(--shadow-gold);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), #c49a2f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--shadow-gold);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-value.win {
    color: var(--accent-green);
}

.stat-value.loss {
    color: var(--accent-red);
}

.stat-trend,
.stat-subtitle {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.trend-up {
    color: var(--accent-green);
}

.trend-down {
    color: var(--accent-red);
}

.stat-content {
    flex: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Premium Cards */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-blue), var(--primary-gold));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.premium-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    box-shadow: 0 10px 40px var(--shadow-gold);
    border-color: var(--primary-gold);
}

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

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}

.card-badge {
    background: linear-gradient(135deg, var(--accent-blue), #357abd);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-body {
    padding: 0;
}

/* Grid Spans */
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* Responsive */
@media (max-width: 1024px) {
    .col-span-3,
    .col-span-4,
    .col-span-6,
    .col-span-8 {
        grid-column: span 12;
    }
}

/* Player List */
.player-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent-red);
    transition: all 0.2s ease;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.player-name {
    font-weight: 600;
    color: var(--text-light);
}

.player-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Action Buttons Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.action-btn:hover {
    background: var(--primary-gold);
    color: var(--primary-deep);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-gold);
}

.action-icon {
    font-size: 2rem;
}

.action-label {
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
}

/* Alerts */
.alert-premium,
.message {
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-warning {
    background: rgba(230, 126, 34, 0.15);
    border-color: #e67e22;
    color: #f39c12;
}

.alert-info,
.message.success {
    background: rgba(74, 144, 226, 0.15);
    border-color: var(--accent-blue);
    color: #5dade2;
}

.message.error-message {
    background: rgba(231, 76, 60, 0.15);
    border-color: var(--accent-red);
    color: #ef4444;
}

/* Table Styling */
.premium-table,
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.premium-table thead th,
.data-table thead th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.premium-table tbody tr,
.data-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.premium-table tbody tr:hover,
.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.01);
}

.premium-table tbody td,
.data-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Forms */
form,
.data-form {
    padding: 0;
}

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

.form-label,
.form-group label {
    display: block;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 8px;
    color: var(--text-light) !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-select option {
    background: var(--primary-deep);
    color: var(--text-light);
    padding: 0.5rem;
}

.form-input:focus,
.form-select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: var(--primary-gold) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px var(--shadow-gold) !important;
}

textarea.form-input,
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Weights Table */
.weights-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.weights-table th,
.weights-table td {
    border: 1px solid var(--border-gold);
    padding: 0.8rem;
    text-align: center;
}

.weights-table th {
    background: rgba(212,175,55,0.15);
    color: var(--primary-gold);
    font-weight: 600;
}

.weights-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
}

.weights-table input {
    width: 80px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    color: var(--text-light);
    text-align: center;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

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

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-gold), #c49a2f);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Tabs */
.tab-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-gold);
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-slide-up {
    animation: slideInUp 0.5s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-gold);
    margin: 0 0 1rem 0;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
}

a:hover {
    color: var(--text-light);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c49a2f;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* In manager_style.css hinzufügen */

.header-logo-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-gold), #c49a2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 20px var(--shadow-gold);
    transition: transform 0.3s ease;
}

.header-logo-circle:hover {
    transform: scale(1.05) rotate(10deg);
}