/* Custom Styles for Q&A System */

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Navbar Customization */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Question Cards */
.question-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.answer-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.answer-content {
    line-height: 1.8;
}

/* Badges */
.badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
}

/* Responsive Search */
@media (max-width: 991px) {
    .navbar .d-flex {
        margin-top: 1rem;
        width: 100%;
    }
    
    .navbar .d-flex .form-control {
        flex: 1;
    }
}

/* Footer */
footer {
    margin-top: auto;
}

/* Statistics Display */
.border-left-primary {
    border-left: 0.25rem solid #0d6efd !important;
}

.border-left-success {
    border-left: 0.25rem solid #198754 !important;
}

.border-left-info {
    border-left: 0.25rem solid #0dcaf0 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #ffc107 !important;
}

/* Smooth Transitions */
a {
    transition: color 0.2s;
}

.btn {
    transition: all 0.2s;
}

/* Alert Customization */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Profile Stats */
.list-unstyled li {
    padding: 0.5rem 0;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table {
        font-size: 0.875rem;
    }
    
    .btn-group-sm > .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Loading States */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tab Navigation */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background-color: transparent;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}