.page-header {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--secondary-blue);
    opacity: 0.05;
    border-radius: 50%;
}

.page-header h2 {
    color: var(--primary-dark);
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.page-header .lead {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-tender .stat-icon {
    background: linear-gradient(45deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.2));
    color: var(--accent-teal);
}

.stat-auction .stat-icon {
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
    color: var(--accent-gold);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Table Enhancements */
.announcements-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table thead {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.table thead th {
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.announcement-title {
    font-weight: 600;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.announcement-title:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.deadline-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.actions-cell .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.375rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.actions-cell .btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.actions-cell .btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }
    
    .table tbody td {
        display: block;
        text-align: left;
        border: none;
        padding: 1rem;
        position: relative;
        padding-right: 50%;
    }
    
    .table tbody td::before {
        content: attr(data-label);
        position: absolute;
        right: 1rem;
        width: 45%;
        padding-left: 1rem;
        font-weight: 600;
        color: var(--primary-dark);
    }
    
    .actions-cell {
        text-align: center !important;
    }
    
    .actions-cell::before {
        display: none;
    }
}

:root {
    --primary-blue: #0f3b6a;
    --primary-dark: #0a2a4a;
    --secondary-blue: #1e6f9c;
    --accent-gold: #d4a373;
    --accent-teal: #2c7a6e;
    --light-bg: #f4f7fb;
    --soft-gray: #e9edf2;
    --pure-white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --card-shadow: 0 20px 30px -10px rgba(10, 42, 74, 0.15);
    --header-gradient: linear-gradient(165deg, #0a2a4a 0%, #0f3b6a 45%, #1a4f7a 100%);
    --glass-effect: rgba(255, 255, 255, 0.8);
    --border-radius-xl: 24px;
    --border-radius-lg: 20px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
}

a {
    text-decoration: none;
}
* {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(31, 111, 156, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 90% 70%, rgba(212, 163, 115, 0.03) 0%, transparent 30%),
        linear-gradient(135deg, #f4f7fb 0%, #e9edf2 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles - لوکس و مدرن */
.site-header {
    background: var(--header-gradient);
    color: var(--text-light);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-gold);
    box-shadow: 0 15px 30px rgba(10, 42, 74, 0.2);
}

.site-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(44, 122, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatReverse 18s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 30px) rotate(5deg); }
    75% { transform: translate(20px, -20px) rotate(-5deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(-5deg); }
    75% { transform: translate(-20px, 30px) rotate(5deg); }
}

.header-content {
    position: relative;
    z-index: 3;
}

.header-logo {
    width: 70px;
    height: 70px;
    background: var(--glass-effect);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--accent-gold);
}

.header-logo i {
    font-size: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #f0e6d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-header .sub {
    font-size: 1rem;
    opacity: 0.95;
    margin-top: 0.6rem;
    font-weight: 400;
    color: #e6e9f0;
    position: relative;
    padding-right: 1rem;
    border-right: 3px solid var(--accent-gold);
}

.date-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.date-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.date-badge i {
    color: var(--accent-gold);
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0;
    position: relative;
}

/* Cards - لوکس و شناور */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--pure-white);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-teal));
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 50px -15px rgba(10, 42, 74, 0.25);
}

.card-header {
    background: linear-gradient(105deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 1.3rem 1.8rem;
    border-bottom: 2px solid rgba(212, 163, 115, 0.3);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    font-size: 1.1rem;
}

.card-header i {
    color: var(--accent-gold);
    margin-left: 0.5rem;
}

.card-body {
    padding: 2rem;
}

/* Badges - شیک و مدرن */
.badge-tender {
    background: linear-gradient(145deg, #2c7a6e, #1e5f55);
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 6px 12px rgba(44, 122, 110, 0.25);
    letter-spacing: 0.3px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-auction {
    background: linear-gradient(145deg, #d4a373, #b5825e);
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 6px 12px rgba(212, 163, 115, 0.25);
    letter-spacing: 0.3px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tables - شیک و حرفه‌ای */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(105deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 3px solid var(--accent-gold);
    padding: 1.2rem 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr:hover {
    background: linear-gradient(105deg, #fef9f4, #fff7ed);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.1);
}

.table td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Footer - مدرن و مینیمال */
footer {
    background: linear-gradient(165deg, #0a2a4a 0%, #0f3b6a 100%);
    color: var(--text-light);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    position: relative;
    border-top: 4px solid var(--accent-gold);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 163, 115, 0.5), transparent);
}

.footer-content {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-content i {
    color: var(--accent-gold);
    margin-left: 0.3rem;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* Buttons - جذاب و پویا */
.btn {
    border-radius: 12px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(145deg, #0f3b6a, #1e6f9c);
    box-shadow: 0 8px 20px rgba(31, 111, 156, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #1a4f7a, #2a8ab3);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(31, 111, 156, 0.4);
}

.btn-success {
    background: linear-gradient(145deg, #2c7a6e, #3b9b8a);
    box-shadow: 0 8px 20px rgba(44, 122, 110, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Alerts - شیک و چشمنواز */
.alert {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 1.2rem 1.8rem;
    border-right: 5px solid;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(105deg, #e8f0fe, #dae6f5);
    border-right-color: #0f3b6a;
    color: #0a2a4a;
}

.alert-success {
    background: linear-gradient(105deg, #e3f2ed, #d4eae3);
    border-right-color: #2c7a6e;
    color: #1e5f55;
}

.alert-warning {
    background: linear-gradient(105deg, #fff1e0, #ffe8d4);
    border-right-color: #d4a373;
    color: #8b5e3c;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 0;
    }
    
    .site-header h1 {
        font-size: 1.3rem;
    }
    
    .header-logo {
        width: 55px;
        height: 55px;
        margin-left: 1rem;
    }
    
    .header-logo i {
        font-size: 2rem;
    }
    
    .site-header .sub {
        font-size: 0.8rem;
    }
    
    main {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0f3b6a, #1e6f9c);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a4f7a, #2a8ab3);
}

/* Utility Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.text-gold {
    color: var(--accent-gold) !important;
}

.border-gradient {
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--accent-gold), var(--accent-teal));
    border-image-slice: 1;
}