/* Online Odalar Sistemi - Ana CSS */

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

:root {
    /* CRM - Minimalist & Profesyonel Renk Paleti */
    --primary-color: #1E40AF;        /* Koyu Mavi - Kurumsal */
    --primary-dark: #1E3A8A;         /* Daha Koyu Mavi */
    --primary-light: #3B82F6;        /* Açık Mavi - Vurgu */
    --secondary-color: #1F2937;      /* Antrasit Gri */
    --secondary-dark: #111827;       /* Çok Koyu Antrasit */
    --secondary-light: #374151;      /* Orta Antrasit */
    --accent-color: #4B5563;         /* Nötr Gri */
    --success-color: #059669;        /* Koyu Yeşil */
    --danger-color: #DC2626;         /* Koyu Kırmızı */
    --warning-color: #D97706;        /* Koyu Turuncu */
    --dark-color: #111827;           /* Çok Koyu */
    --light-color: #F9FAFB;          /* Çok Açık Gri */
    --border-color: #E5E7EB;         /* Açık Border */
    --text-color: #111827;           /* Koyu Metin */
    --text-light: #6B7280;           /* Orta Gri Metin */
    --text-lighter: #9CA3AF;         /* Açık Gri Metin */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;         /* Çok Açık Arka Plan */
    --bg-dark: #111827;              /* Koyu Arka Plan */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-secondary);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - CRM Stili */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo::before {
    content: '';
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: 6px;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.025em;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
    border-bottom-color: var(--primary-light);
}

.nav-menu a.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn:not(#profileActions .btn) {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:not(#profileActions .btn-primary) {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.btn-primary:not(#profileActions .btn-primary):hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:not(#profileActions .btn-primary):active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:not(#profileActions .btn-secondary) {
    background: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.btn-secondary:not(#profileActions .btn-secondary):hover {
    background: var(--secondary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary:not(#profileActions .btn-secondary):active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

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

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

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

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

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

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Cards - CRM Stili */
.card {
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Room Grid */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.room-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.2s;
}

.room-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.room-card:hover::before {
    width: 4px;
}

.room-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.25px;
}

.room-icon {
    font-size: 1.25rem;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.2s;
}

.room-card:hover .room-icon {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.room-card-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.room-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Error Messages */
.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Welcome Section - CRM Stili */
.welcome-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.welcome-section h1 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 400;
}

/* Section */
.section {
    margin-bottom: 2rem;
}

.section-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.25px;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-left-width: 4px;
    border-left-color: var(--primary-dark);
}

.stat-card.stat-primary {
    border-left-color: var(--primary-color);
}

.stat-card.stat-success {
    border-left-color: var(--success-color);
}

.stat-card.stat-warning {
    border-left-color: var(--warning-color);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.6;
    filter: grayscale(100%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-card:hover .stat-icon {
    opacity: 1;
    filter: grayscale(0%);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px rgba(30, 41, 59, 0.3);
    position: relative;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

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

/* Badges */
.room-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-education {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.badge-business {
    background: var(--secondary-color);
    color: white;
    font-weight: 500;
}

.badge-gaming {
    background: var(--accent-color);
    color: white;
    font-weight: 500;
}

.participant-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.no-rooms {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
}

