/* Global Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4361ee;
    border-color: #4361ee;
}

.btn-primary:hover {
    background-color: #3a56d4;
    border-color: #3a56d4;
}

.bg-primary {
    background-color: #4361ee !important;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Mobile Card Styles */
.mobile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-card .card-img-top {
    height: 220px;
    object-fit: contain;
    background-color: #fff;
    padding: 20px;
}

.mobile-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4361ee;
    margin-bottom: 0;
}

.mobile-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    margin-top: auto;
}

/* Section Styles */
.section-heading {
    position: relative;
    margin-bottom: 30px;
    font-weight: 700;
    padding-bottom: 10px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #4361ee;
    border-radius: 2px;
}

/* Sidebar Styles */
.sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 20px;
}

.sidebar-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4361ee;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list li a {
    color: #333;
    display: flex;
    align-items: center;
}

.sidebar-list li a:hover {
    color: #4361ee;
}

.sidebar-list li a i {
    margin-right: 10px;
}

/* Article Card Styles */
.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.article-card .card-text {
    color: #6c757d;
}

.article-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Detail Page */
.mobile-detail-img {
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 20px;
}

.mobile-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4361ee;
    margin-bottom: 20px;
}

.specs-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 20px;
    margin-bottom: 20px;
}

.specs-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4361ee;
}

.specs-table tr td:first-child {
    font-weight: 600;
    width: 40%;
}

/* Admin Styles */
.admin-card {
    border-left: 4px solid #4361ee;
}

.admin-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4361ee;
}

.admin-card .card-icon {
    font-size: 3rem;
    color: rgba(67, 97, 238, 0.2);
}

/* Form Styles */
.form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-label {
    font-weight: 600;
}

/* Tabs for admin forms */
.nav-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #4361ee;
    font-weight: 700;
    border-bottom: 3px solid #4361ee;
}

/* Ad Placement */
.ad-container {
    background-color: #f1f3f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .mobile-card .card-img-top {
        height: 180px;
    }
    
    .sidebar {
        margin-bottom: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Coming Soon Tag */
.coming-soon-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
} 