:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --light-gray: #f3f4f6;
    --dark-gray: #4b5563;
    --success-color: #10b981;
}

body {
    font-family: 'Roboto', sans-serif;
    padding-top: 76px;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Software Detail Page */
.software-detail {
    background-color: var(--light-gray);
}

.software-image {
    border-radius: 1rem;
    overflow: hidden;
}

.accent-color {
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features-list i {
    font-size: 1.2rem;
    width: 24px;
}

/* Carousel Styles */
#mainCarousel {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    height: 500px;
    margin-top: -16px;
}

.carousel-item {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.card-text {
    color: var(--dark-gray);
}

.software-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cart Offcanvas */
.offcanvas {
    border-radius: 1rem 0 0 1rem;
}

.offcanvas-header {
    background-color: var(--light-gray);
    padding: 1.5rem;
}

.offcanvas-title {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--success-color);
    font-weight: 500;
}

.cart-total {
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Footer Styles */
.footer {
    background-color: var(--light-gray);
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.footer a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    color: var(--dark-gray);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Form Styles */
.form-label {
    color: var(--dark-gray);
    font-weight: 500;
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.input-group-text {
    background-color: var(--light-gray);
    border: 1px solid #e5e7eb;
    color: var(--primary-color);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    z-index: 1000;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-content h2 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    #mainCarousel, .carousel-item {
        height: 400px;
    }

    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .auth-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .carousel-content h2 {
        font-size: 1.5rem;
    }

    #mainCarousel, .carousel-item {
        height: 300px;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .auth-icon {
        font-size: 2.5rem;
    }
}

.user-dropdown .dropdown-toggle::after {
    display: none;
}

.user-dropdown .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.user-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.user-dropdown .dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.user-dropdown .dropdown-divider {
    margin: 0.5rem 0;
}

.user-welcome {
    font-weight: 500;
    margin-right: 0.5rem;
} 