/* Global Styles */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Home Page Styles */
.home-container {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header */
.home-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
}

.nav-icon:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-icon i {
    font-size: 1.2rem;
}

/* Logo clickable */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.logo:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .home-main {
        padding: 2rem 3rem;
        max-width: 100%;
    }
    
    .header-content {
        padding: 1rem 3rem;
        max-width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .home-main {
        padding: 2rem;
    }
    
    .header-content {
        padding: 1rem 2rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .nav-icon i {
        font-size: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .dashboard-card {
        padding: 2rem;
        gap: 1rem;
        min-height: 180px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-content h3 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .quick-actions {
        padding: 2rem;
    }
    
    .quick-actions h3 {
        font-size: 1.5rem;
    }
    
    .action-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .home-main {
        padding: 1.5rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .logo h1 {
        display: none;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        gap: 0.75rem;
        min-height: 160px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .quick-actions {
        padding: 1.5rem;
    }
    
    .quick-actions h3 {
        font-size: 1.3rem;
    }
    
    .action-buttons {
        gap: 1rem;
    }
    
    .action-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* User Menu - Removed, replaced with icon menu */

/* Main Content */
.home-main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    box-sizing: border-box;
    min-height: calc(100vh - 80px); /* Header yüksekliğini çıkar */
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    width: 100%;
}

.dashboard-card.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dashboard-card.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.dashboard-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-card.clickable:hover::before {
    left: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.card-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-content p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.stat-value.warning {
    color: #e74c3c;
}

.stat-value.success {
    color: #27ae60;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.role-badge.role-admin {
    background: #e74c3c;
}

/* Quick Actions */
.quick-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.admin-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.action-btn.admin-btn:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Profile Section */
.profile-content {
    display: grid;
    gap: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.profile-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #333;
}

.profile-info p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 1.1rem;
}

.profile-details {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-details h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    color: #333;
}

/* Settings Section */
.settings-content {
    display: grid;
    gap: 2rem;
}

.settings-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.settings-card h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.setting-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.setting-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.setting-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .home-main {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}
