.ads-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ads-header h1 {
    color: #333;
    margin: 0;
}

.login-required {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.ad-item.active {
    border-left-color: #28a745;
}

.ad-item.pending {
    border-left-color: #ffc107;
}

.ad-item.expired {
    border-left-color: #dc3545;
    opacity: 0.7;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ad-header h3 {
    color: #333;
    margin: 0;
}

.ad-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.ad-status.active {
    background: #28a745;
    color: white;
}

.ad-status.pending {
    background: #ffc107;
    color: #333;
}

.ad-status.expired {
    background: #dc3545;
    color: white;
}

.ad-description {
    color: #666;
    margin-bottom: 15px;
}

.ad-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    color: #333;
    font-size: 0.9rem;
}

.info-item a {
    color: #667eea;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.ad-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-pay {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-pay {
    background: #28a745;
    color: white;
}

.btn-pay:hover {
    background: #218838;
}

.no-ads {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

@media (max-width: 768px) {
    .ads-container {
        padding: 20px;
    }
    
    .ads-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .ad-info {
        grid-template-columns: 1fr;
    }
}
