/* Production Dashboard CSS - WhatEazy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #333;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid #e5e5e5;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-logo {
    height: 52px !important;
    width: auto !important;
    max-width: 160px !important;
    max-height: 52px !important;
}

.sidebar-nav {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    margin: 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #333;
}

.nav-item.active {
    background: #007aff;
    color: white;
}

.nav-item.logout {
    color: #ff3b30;
}

.nav-item.logout:hover {
    background: #fff5f5;
}

/* Main Content */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 0;
}

.content-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user-info {
    color: #666;
    font-size: 14px;
}

/* Views */
.view {
    display: none;
    padding: 30px;
}

.view.active {
    display: block;
}

.view h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-description {
    color: #666;
    margin-bottom: 30px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

/* Buttons */
.btn-primary {
    background: #007aff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0056cc;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e5e5e5;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.btn-back {
    background: none;
    border: none;
    color: #007aff;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
}

.btn-back:hover {
    text-decoration: underline;
}

/* Tables */
.campaigns-table-container,
.transactions-table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.campaigns-table,
.transactions-table,
.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.campaigns-table th,
.transactions-table th,
.activity-table th {
    background: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
}

.campaigns-table td,
.transactions-table td,
.activity-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.campaigns-table tbody tr:hover,
.transactions-table tbody tr:hover,
.activity-table tbody tr:hover {
    background: #f8f9fa;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007aff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Campaign Steps */
.campaign-steps {
    max-width: 600px;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.step h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.step-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Template Preview */
.template-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    display: none;
}

.template-preview.show {
    display: block;
}

/* Recipients Input */
.input-method {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-method label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.recipients-summary {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Campaign Review */
.campaign-review {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.review-section {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.review-section:last-child {
    border-bottom: none;
}

.review-section h3 {
    margin-bottom: 15px;
    color: #1d1d1f;
}

.message-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    font-family: monospace;
}

.disclaimer {
    padding: 20px;
    background: #fff9e6;
    border: 1px solid #ffd60a;
    border-radius: 8px;
    margin-top: 20px;
}

/* Credits */
.credits-overview {
    margin-bottom: 40px;
}

.credit-balance-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    text-align: center;
    max-width: 300px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 600;
    color: #007aff;
    margin: 15px 0;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pack-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pack-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.pack-credits {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.pack-price {
    font-size: 24px;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 20px;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.template-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.template-card h3 {
    margin-bottom: 10px;
    color: #1d1d1f;
}

.template-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.template-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.template-status.approved {
    background: #d4edda;
    color: #155724;
}

.template-status.pending {
    background: #fff3cd;
    color: #856404;
}

.template-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Settings */
.settings-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.settings-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.verification-status {
    margin-top: 8px;
    font-size: 12px;
}

.verification-status.verified {
    color: #28a745;
}

.verification-status.unverified {
    color: #dc3545;
}

.policy-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.auto-reply-text {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    font-family: monospace;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .packs-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    color: #666;
    font-style: italic;
}

/* Status Indicators */
.status-draft { color: #666; }
.status-sending { color: #007aff; }
.status-completed { color: #28a745; }
.status-failed { color: #dc3545; }

/* System Status */
.system-status.healthy { color: #28a745; }
.system-status.warning { color: #ffc107; }
.system-status.error { color: #dc3545; }
/* Auth Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-container {
    margin-bottom: 32px;
}

.logo-container .logo {
    height: 52px;
    max-width: 160px;
    width: auto;
}

.auth-card h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.auth-description {
    color: #86868b;
    margin-bottom: 32px;
    font-size: 17px;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d1d1f;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 17px;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #007aff;
}

.btn-primary {
    width: 100%;
    background: #007aff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #0056cc;
}

.btn-primary:disabled {
    background: #86868b;
    cursor: not-allowed;
}

.message {
    margin: 20px 0;
    text-align: center;
}

.message .success {
    color: #34c759;
    background: #f0f9f0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #34c759;
}

.message .error {
    color: #ff3b30;
    background: #fff0f0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ff3b30;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
}

.auth-footer p {
    margin-bottom: 8px;
    color: #86868b;
}

.auth-footer a {
    color: #007aff;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}
