/* Main Stylesheet for BrainSpark */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --neural-color: #8a2be2;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Customization */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Card Customization */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card:nth-child(2) {
    border-left-color: var(--success-color);
}

.stat-card:nth-child(3) {
    border-left-color: var(--warning-color);
}

.stat-card:nth-child(4) {
    border-left-color: var(--danger-color);
}

/* Button Customization */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 20px;
}

.btn-lg {
    border-radius: 10px;
    padding: 12px 30px;
}

/* Neural Network Theme */
.neural-strength-display {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6610f2 100%) !important;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* List Groups */
.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 500;
}

/* Table Customization */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 2px solid #dee2e6;
}

/* Alert Customization */
.alert {
    border-radius: 10px;
    border: none;
}

/* Footer */
.footer {
    margin-top: auto;
}

/* Feature Icons */
.feature-icon {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Brain Map Preview */
#brainMapPreview {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Animation for neural growth */
@keyframes neural-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.neural-pulse {
    animation: neural-pulse 2s infinite;
}

/* Color picker styling */
.form-control-color {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    padding: 2px;
}

/* Tag styling */
.tag-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}