/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

/* Main container */
.container {
    display: flex;
    height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Navigation sidebar */
.nav-sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-sidebar:hover {
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
}

/* Sidebar title */
.nav-sidebar h3 {
    color: white;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Button container */
.button-container {
    margin-bottom: 12px;
}

/* Navigation buttons */
.nav-button {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Active/selected button state */
.nav-button.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Main content area */
.main-content {
    flex: 1;
    background-image: url('img/csapatkep.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Iframe styling */
.task-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: transparent;
    position: relative;
}

/* Loading state */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 18px;
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling for sidebar */
.nav-sidebar::-webkit-scrollbar {
    width: 6px;
}

.nav-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.nav-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-sidebar {
        width: 200px;
        padding: 15px;
    }
    
    .nav-sidebar h3 {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
    
    .nav-button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        flex-direction: column;
    }
    
    .nav-sidebar {
        width: 100%;
        height: 150px;
        padding: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav-sidebar h3 {
        min-width: 120px;
        margin-bottom: 0;
        margin-right: 15px;
        border-bottom: none;
        border-right: 2px solid rgba(255, 255, 255, 0.2);
        padding-right: 15px;
        padding-bottom: 0;
    }
    
    .button-container {
        margin-bottom: 0;
        min-width: 100px;
    }
    
    .nav-button {
        white-space: nowrap;
    }
    
    .main-content {
        flex: 1;
        height: calc(100vh - 150px);
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.task-frame {
    animation: fadeIn 0.3s ease-in-out;
}