/* ========================================
   INFOGINI - Online Classified Marketplace
   www.infogini.in
   ======================================== */

/* CSS Variables */
:root {
    --primary-blue: #2196F3;
    --primary-dark: #1976D2;
    --secondary-red: #E53935;
    --secondary-dark: #C62828;
    --accent-orange: #FF9800;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --success: #4CAF50;
    --warning: #FFC107;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-like {
    background: #4267B2;
    color: white;
}

.btn-signup {
    background: var(--secondary-red);
    color: white;
    font-weight: 600;
}

.btn-login {
    background: var(--secondary-red);
    color: white;
    font-weight: 600;
}

/* Main Header */
.main-header {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--secondary-red);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 10px;
}

.main-nav a {
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-blue);
    color: white;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-red);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: var(--text-dark);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* ========================================
   SEARCH SECTION
   ======================================== */

.search-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 30px 0;
}

.search-section .container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    min-width: 300px;
}

.search-box input {
    border: none;
    padding: 12px 15px;
    flex: 1;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Hero Slider */
.hero-slider {
    background: white;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider-container {
    position: relative;
    height: 350px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    max-width: 400px;
}

.slide-content h2 {
    font-size: 32px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.slide-content p {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */

.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* ========================================
   SIDEBAR - CATEGORIES
   ======================================== */

.sidebar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 20px;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark);
    transition: all 0.3s;
}

.category-list a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
    padding-left: 20px;
}

.category-list a i {
    width: 25px;
    color: var(--primary-blue);
}

.category-list a span {
    flex: 1;
}

.category-list a .count {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Subcategory Filter */
.subcategory-filter {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 15px;
}

.subcategory-filter h4 {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-dark);
}

.filter-item {
    margin-bottom: 10px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-light);
}

.filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.section-header a {
    font-size: 13px;
    opacity: 0.9;
}

.section-header a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========================================
   PRODUCT CARDS GRID
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--secondary-red) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-red);
    margin-bottom: 8px;
}

.product-price .currency {
    font-size: 14px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.product-meta i {
    color: var(--primary-blue);
}

.product-actions {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.product-actions .btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
    justify-content: center;
}

/* ========================================
   CLASSIFIED LIST VIEW
   ======================================== */

.classified-list {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.list-item {
    display: grid;
    grid-template-columns: 80px 1fr 150px 120px 120px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--bg-light);
}

.list-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.list-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.list-location {
    font-size: 13px;
    color: var(--text-light);
}

.list-location i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.list-phone {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.list-phone i {
    color: var(--success);
    margin-right: 5px;
}

.list-actions {
    text-align: right;
}

/* ========================================
   AD DETAILS PAGE
   ======================================== */

.ad-details {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ad-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, #f8f9fa 0%, white 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--primary-blue);
}

.breadcrumb span {
    color: var(--text-muted);
}

.breadcrumb i {
    color: var(--text-muted);
    font-size: 10px;
}

.ad-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.ad-title-section h1 {
    font-size: 24px;
    color: var(--text-dark);
}

.ad-id-badge {
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ad-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.ad-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ad-meta i {
    color: var(--primary-blue);
}

/* Ad Price Section */
.ad-price-section {
    background: linear-gradient(135deg, var(--secondary-red) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-price {
    font-size: 28px;
    font-weight: 700;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}

.social-share a:hover {
    transform: scale(1.1);
}

.social-share .facebook { background: #4267B2; }
.social-share .instagram { background: #E4405F; }
.social-share .twitter { background: #1DA1F2; }
.social-share .youtube { background: #FF0000; }
.social-share .whatsapp { background: #25D366; }

/* Ad Content Grid */
.ad-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 0;
}

/* Left Content */
.ad-main {
    padding: 25px;
    border-right: 1px solid var(--border-color);
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 25px;
}

.main-image {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--bg-light);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-blue);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Boxes */
.section-box {
    margin-bottom: 25px;
}

.section-box-title {
    background: var(--secondary-red);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.section-box-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 0 8px 8px 8px;
}

.section-box-content p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Quantity Section */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.quantity-section label {
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-section input {
    width: 100px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.quantity-section select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 150px;
}

/* CTA Buttons */
.cta-section {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-sell {
    background: var(--secondary-red);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-sell::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

/* Location Section */
.location-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.location-item {
    display: flex;
    flex-direction: column;
}

.location-item label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.location-item span {
    font-weight: 600;
    color: var(--text-dark);
}

.map-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Reviews Section */
.reviews-section {
    margin-top: 30px;
}

.reviews-header {
    background: #FFEB3B;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.reviews-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.review-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

/* Right Sidebar */
.ad-sidebar {
    padding: 25px;
    background: #fafafa;
}

.sidebar-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sidebar-section-title {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #F57C00 100%);
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-section-content {
    padding: 15px;
}

.sidebar-section.premium .sidebar-section-title {
    background: linear-gradient(135deg, var(--secondary-red) 0%, var(--secondary-dark) 100%);
}

.sidebar-section.green .sidebar-section-title {
    background: linear-gradient(135deg, var(--success) 0%, #388E3C 100%);
}

.sidebar-section.blue .sidebar-section-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
}

/* Seller Info */
.seller-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.seller-info-item:last-child {
    border-bottom: none;
}

.seller-info-item i {
    width: 25px;
    color: var(--primary-blue);
}

.seller-info-item .label {
    color: var(--text-muted);
    font-size: 12px;
}

.seller-info-item .value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 13px;
}

/* Related Products */
.related-products {
    margin-top: 30px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary-blue);
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload:hover {
    border-color: var(--primary-blue);
    background: rgba(33, 150, 243, 0.05);
}

.image-upload i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* ========================================
   ADMIN PANEL
   ======================================== */

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 200px);
}

.admin-sidebar {
    background: #263238;
    color: white;
    padding: 20px 0;
}

.admin-user {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.admin-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-blue);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.admin-user h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.admin-user span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.admin-menu {
    list-style: none;
    padding: 15px 0;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.admin-menu li a:hover,
.admin-menu li.active a {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-menu li a i {
    width: 20px;
}

.admin-content {
    padding: 30px;
    background: var(--bg-light);
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h2 {
    font-size: 24px;
    color: var(--text-dark);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.blue { background: var(--primary-blue); }
.stat-icon.green { background: var(--success); }
.stat-icon.orange { background: var(--accent-orange); }
.stat-icon.red { background: var(--secondary-red); }

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Data Table */
.data-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
    text-transform: uppercase;
}

.data-table tr:hover {
    background: var(--bg-light);
}

.data-table .status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #FFF3E0;
    color: #E65100;
}

.status-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-rejected {
    background: #FFEBEE;
    color: #C62828;
}

.data-table .actions {
    display: flex;
    gap: 5px;
}

.data-table .actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-approve {
    background: var(--success);
    color: white;
}

.btn-reject {
    background: var(--secondary-red);
    color: white;
}

.btn-view {
    background: var(--primary-blue);
    color: white;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #263238;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .ad-content {
        grid-template-columns: 1fr;
    }
    
    .ad-main {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .list-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .list-actions {
        text-align: left;
    }
    
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .ad-title-section {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .slider-container {
        height: 200px;
    }
    
    .slide-content {
        left: 20px;
        max-width: 250px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .main-nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.hidden { display: none; }
.visible { display: block; }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.alert-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

/* Icons placeholder - using Font Awesome-like classes */
.icon::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
