:root {
    --primary: #e10600; /* F1 Red */
    --dark: #0f0f0f;
    --light: #f8f9fa;
    --accent: #ffd700;
    --gray: #2a2a2a;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--dark);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent) !important;
    transform: scale(1.02);
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--primary);
}

.nav-item {
    margin: 0 5px;
    position: relative;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
        font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: white !important;
    background: rgba(225,6,0,0.2);
}

.nav-link.active {
    color: white !important;
    background: rgba(225,6,0,0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

.container-main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.container-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
}

.alert {
    border: none;
    border-left: 4px solid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
    opacity: 0;
    display: inline-block;
    text-align: left;
}

.alert.show {
    transform: translateY(0);
    opacity: 1;
}

.alert-dismissible .btn-close {
    padding: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    border-top: 3px solid var(--primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Profile Picture */
.profile-pic-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-right: 8px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-pic-nav:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem !important;
    }
    
    .container-main {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .flash-container {
        top: 10px;
        right: 10px;
        min-width: 280px;
    }
    
    .alert {
        padding: 0.8rem 1.2rem;
    }
}

    /* Button Styles */
.btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #c00500 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c00500 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(225,6,0,0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(225,6,0,0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    color: white;
    background: var(--primary);
    box-shadow: 0 6px 12px rgba(225,6,0,0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #a71d2a 0%, #dc3545 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
}

/* Special Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-ripple:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Floating Action Button */
.btn-float {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Glow Effect for Important Buttons */
.btn-glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(225,6,0,0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(225,6,0,0.8);
    }
}




