/* Admin Panel Styles */

.admin-form {
    margin-top: 20px;
}

.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.admin-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.admin-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.admin-form input[type="file"] {
    margin-top: 10px;
    padding: 8px;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.ads-list {
    margin-top: 20px;
}

.ad-item {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.ad-item.active {
    border-color: #28a745;
    background: #f0fff4;
}

.ad-item.inactive {
    border-color: #dc3545;
    background: #fff5f5;
    opacity: 0.7;
}

.ad-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.ad-item-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.ad-item-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ad-item-badge.active {
    background: #28a745;
    color: white;
}

.ad-item-badge.inactive {
    background: #dc3545;
    color: white;
}

.ad-item-badge.position {
    background: #667eea;
    color: white;
    margin-left: 10px;
}

.ad-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ad-item-detail {
    display: flex;
    flex-direction: column;
}

.ad-item-detail label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.ad-item-detail span {
    color: #333;
    font-weight: 500;
}

.ad-item-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ad-item-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.ad-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-toggle {
    background: #28a745;
    color: white;
}

.btn-toggle:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-toggle.inactive {
    background: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
}

@media (max-width: 768px) {
    .ad-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ad-item-details {
        grid-template-columns: 1fr;
    }
    
    .ad-item-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

