/* Custom styles for RuangAI Registration System */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.header-bg {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
}

.registration-card, .step-card, .login-card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: none;
    margin: 1rem;
}

.sidebar {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    z-index: 1000;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
    border-radius: 5px;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    text-align: center;
    flex: 1;
}

.step.active .step-number {
    background-color: #2575fc;
    color: white;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
}

.status-berjuang { 
    background-color: #ffc107 !important;
    color: #000 !important;
}

.status-pejuang { 
    background-color: #17a2b8 !important;
    color: #fff !important;
}

.status-petarung { 
    background-color: #fd7e14 !important;
    color: #fff !important;
}

.status-merdeka { 
    background-color: #28a745 !important;
    color: #fff !important;
}

.card-feature {
    transition: transform 0.3s;
    height: 100%;
    margin-bottom: 1rem;
}

.card-feature:hover {
    transform: translateY(-5px);
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #6a11cb;
    background-color: #f8f0ff;
}

.class-option {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.class-option:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.class-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.message-example {
    background-color: #e9f7ef;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: relative;
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        margin-bottom: 1rem;
    }
    
    .registration-card, .step-card, .login-card {
        margin: 0.5rem;
    }
    
    .header-bg {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .card-feature {
        margin-bottom: 1rem;
    }
    
    .upload-area {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .class-option {
        padding: 10px;
    }
    
    .message-example {
        padding: 10px;
    }
}

/* Additional responsive utilities */
.text-center-xs {
    text-align: center;
}

.text-left-xs {
    text-align: left;
}

@media (min-width: 768px) {
    .text-center-xs {
        text-align: left;
    }
}

/* Mobile menu toggle for admin panel */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1001;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-content {
        padding-top: 3rem;
    }
}