/**
 * ODP Ads Platform - Frontend Styles
 */

.odp-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.odp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.odp-dashboard-header h1 {
    font-size: 28px;
    margin: 0;
    color: #111827;
}

.odp-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.odp-balance {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

/* Stats Grid */
.odp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.odp-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.odp-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.odp-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #111827;
}

/* Navigation */
.odp-dashboard-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.odp-nav-item {
    padding: 12px 0;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.odp-nav-item:hover {
    color: #3b82f6;
}

.odp-nav-item.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 500;
}

/* Sections */
.odp-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.odp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.odp-section h2 {
    font-size: 20px;
    margin: 0;
    color: #111827;
}

/* Tables */
.odp-table {
    width: 100%;
    border-collapse: collapse;
}

.odp-table th {
    text-align: left;
    padding: 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.odp-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.odp-table tr:hover {
    background: #f9fafb;
}

/* Status badges */
.odp-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.odp-status-active {
    background: #d1fae5;
    color: #065f46;
}

.odp-status-paused {
    background: #fed7aa;
    color: #92400e;
}

.odp-status-draft {
    background: #e0e7ff;
    color: #3730a3;
}

.odp-status-completed {
    background: #f3f4f6;
    color: #4b5563;
}

/* Buttons */
.odp-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.odp-btn-primary {
    background: #3b82f6;
    color: white;
}

.odp-btn-primary:hover {
    background: #2563eb;
}

.odp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.odp-btn-secondary:hover {
    background: #e5e7eb;
}

.odp-btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    margin: 0 2px;
}

/* Forms */
.odp-form-group {
    margin-bottom: 20px;
}

.odp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.odp-form-group input,
.odp-form-group select,
.odp-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.odp-form-group input:focus,
.odp-form-group select:focus,
.odp-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.odp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.odp-checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.odp-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.odp-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

/* Modal */
.odp-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.odp-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.odp-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
}

.odp-modal-close:hover {
    color: #111827;
}

/* Empty state */
.odp-empty-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.odp-empty-state p {
    margin-bottom: 20px;
}

/* API Key */
.odp-api-key {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 10px;
    border-radius: 6px;
}

.odp-api-key code {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .odp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .odp-dashboard-nav {
        flex-wrap: wrap;
    }
    
    .odp-form-row {
        grid-template-columns: 1fr;
    }
    
    .odp-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .odp-table {
        font-size: 14px;
    }
    
    .odp-table th,
    .odp-table td {
        padding: 8px;
    }
}