.ad-card-enhanced {
    display: grid;
    grid-template-columns: 30px 100px 1fr auto;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.ad-thumb {
    width: 100px;
    height: 60px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 4px;
}

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

.ad-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.ad-status {
    margin-top: 0.5rem;
}

.ad-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.ad-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ad-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.ad-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.stats-totals {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a2e;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.stats-table th,
.stats-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.stats-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.site-card {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .ad-card-enhanced {
        grid-template-columns: 1fr;
    }

    .ad-select {
        order: -1;
    }

    .ad-thumb {
        width: 100%;
        height: 150px;
    }
}

/* Calendar View */
.calendar-view-grid {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.calendar-view-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-view-day-header {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
}

.calendar-view-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-view-day {
    min-height: 100px;
    padding: 0.5rem;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.calendar-view-day:nth-child(7n) {
    border-right: none;
}

.calendar-view-day.other-month {
    background: #f9fafb;
}

.calendar-view-day.today {
    background: #fef3c7;
}

.calendar-view-day .day-number {
    font-weight: 500;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
}

.calendar-view-day.other-month .day-number {
    color: #9ca3af;
}

.day-ads {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-ad {
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: transform 0.1s;
}

.calendar-ad:hover {
    transform: scale(1.02);
}

.calendar-ad.ad-active {
    background: #d4edda;
    color: #155724;
}

.calendar-ad.ad-scheduled {
    background: #cce5ff;
    color: #004085;
}

.calendar-ad.ad-expired {
    background: #f8d7da;
    color: #721c24;
}

.calendar-ad.ad-draft {
    background: #e2e3e5;
    color: #6c757d;
}

.calendar-more {
    font-size: 0.7rem;
    color: #6b7280;
    padding: 2px 4px;
}

.calendar-nav {
    display: flex;
    align-items: center;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
