/* Wazifa Generator Admin UI Styles */

/* Admin Dashboard Layout */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Admin Header */
.wrap h1 {
    color: #012e24;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9b73d;
}

/* Stats Grid */
.wazifa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wazifa-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(1, 46, 36, 0.1);
    transition: all 0.3s ease;
}

.wazifa-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 46, 36, 0.15);
}

.wazifa-stat-card h3 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-number {
    color: #012e24;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Recent Submissions Table */
.wazifa-recent-submissions {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(1, 46, 36, 0.1);
}

.wazifa-recent-submissions h2 {
    color: #012e24;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* WordPress Table Styling */
.wp-list-table {
    border-collapse: collapse;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.wp-list-table thead th {
    background: #f9fafb;
    color: #012e24;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.wp-list-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #012e24;
}

.wp-list-table tbody tr:hover {
    background: #f9fafb;
}

/* Shortcodes Section */
.wazifa-shortcodes-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(1, 46, 36, 0.1);
}

.wazifa-shortcodes-section h2 {
    color: #012e24;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.wazifa-shortcodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.wazifa-shortcode-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.wazifa-shortcode-card:hover {
    background: #f3f4f6;
    border-color: #e9b73d;
}

.wazifa-shortcode-card h3 {
    color: #012e24;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.shortcode-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.shortcode-display code {
    background: #012e24;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    flex: 1;
}

.copy-shortcode {
    background: #e9b73d;
    color: #012e24;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-shortcode:hover {
    background: #d4a52e;
    transform: translateY(-1px);
}

.wazifa-shortcode-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

/* Form Styling */
.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: #012e24;
    border-bottom: 1px solid #e5e7eb;
    width: 200px;
}

.form-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="password"],
.form-table input[type="number"],
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
    outline: none;
    border-color: #e9b73d;
    box-shadow: 0 0 0 3px rgba(233, 183, 61, 0.1);
}

/* Button Styling */
.button,
.button-primary {
    background: #e9b73d;
    color: #012e24;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover,
.button-primary:hover {
    background: #d4a52e;
    transform: translateY(-1px);
}

.button-secondary {
    background: #012e24;
    color: #ffffff;
}

.button-secondary:hover {
    background: #001a14;
}

/* Alert Messages */
.notice {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.notice-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.notice-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.notice-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

/* Tabs */
.nav-tab-wrapper {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.nav-tab {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px 6px 0 0;
    margin-right: 0.25rem;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: #f3f4f6;
    color: #012e24;
}

.nav-tab-active {
    background: #ffffff;
    color: #012e24;
    border-color: #e5e7eb;
}

/* Card Layout */
.wazifa-admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(1, 46, 36, 0.1);
}

.wazifa-admin-card h3 {
    color: #012e24;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wazifa-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .wazifa-shortcodes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .form-table th {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }
    
    .form-table td {
        padding-top: 0.25rem;
        padding-bottom: 1rem;
    }
}

/* Loading States */
.wazifa-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error States */
.wazifa-success {
    color: #059669;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.wazifa-error {
    color: #dc2626;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0.5rem 0;
} 