/* Custom CSS */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.text-primary {
    color: #667eea !important;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    border: none;
}

/* Responsive adjustments */
/* Mobil optimallashtiruv */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section {
        padding: 2rem 1.5rem !important;
    }
    
    .display-5 {
        font-size: 1.8rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .stat-card .card-body {
        padding: 1rem 0.5rem !important;
    }
    
    .stat-card h3, .stat-card h4 {
        font-size: 1.2rem !important;
    }
    
    .feature-card .card-body {
        padding: 1.5rem !important;
    }
    
    .feature-icon {
        padding: 1rem !important;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
    
    .guide-number {
        width: 50px !important;
        height: 50px !important;
    }
    
    .command-list code {
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 1rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .stat-card .card-body {
        padding: 0.75rem 0.25rem !important;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .stat-icon i {
        font-size: 1rem !important;
    }
    
    .feature-card .card-body {
        padding: 1rem !important;
    }
    
    .guide-card .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Gradient background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* Card hover effects */
.stat-card:hover,
.feature-card:hover,
.guide-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive text */
.text-truncate-mobile {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .text-truncate-mobile {
        max-width: 80px;
    }
}

/* Better spacing */
.feature-list .d-flex {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .feature-list .d-flex {
        font-size: 0.8rem;
    }
}

/* Command list styling */
.command-list code {
    white-space: nowrap;
    min-width: 80px;
    display: inline-block;
}

@media (max-width: 576px) {
    .command-list .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .command-list code {
        margin-bottom: 0.25rem;
    }
}

/* Accordion improvements */
.accordion-button {
    font-weight: 500;
}

.accordion-body ol {
    padding-left: 1.2rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

.table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.text-primary {
    color: #667eea !important;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}