/* ============================================
   Groom Dashboard Styles
   ============================================ */

/* Dashboard Header */
.dashboard-header {
    padding: 120px 0 30px;
    background: linear-gradient(135deg, var(--bg-cream), var(--bg-light));
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-welcome h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.dashboard-welcome h1 i {
    color: var(--accent-color);
}

.dashboard-welcome p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover {
    border-color: var(--primary-gold);
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: var(--white);
    border-color: transparent;
}

.tab-btn i {
    font-size: 18px;
}

/* Dashboard Content */
.dashboard-content {
    padding: 40px 0 100px;
    min-height: 70vh;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Invitation Creator
   ============================================ */
.invitation-creator {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
}

.creator-sidebar {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.creator-sidebar h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-sidebar h3 i {
    color: var(--accent-color);
}

.creator-section {
    margin-bottom: 25px;
}

.creator-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.creator-section input,
.creator-section select,
.creator-section textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.creator-section input:focus,
.creator-section select:focus,
.creator-section textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.creator-section small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.auto-detect i {
    color: var(--primary-gold);
    margin-right: 5px;
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.theme-option:hover {
    border-color: var(--primary-gold);
}

.theme-option.active {
    border-color: var(--accent-color);
    background: var(--bg-cream);
}

.theme-preview {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.elegant-preview {
    background: linear-gradient(135deg, #fdf8f3, #f5e6d3);
}

.islamic-preview {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.modern-preview {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.floral-preview {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
}

.theme-option span {
    font-size: 11px;
    color: var(--text-medium);
}

/* Upload Buttons */
.upload-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-cream);
    border: 2px dashed #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.upload-btn:hover {
    border-color: var(--accent-color);
    background: var(--bg-light);
}

.upload-btn i {
    font-size: 24px;
    color: var(--primary-gold);
}

.upload-btn span {
    font-size: 12px;
    color: var(--text-medium);
}

/* Creator Preview */
.creator-preview {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.creator-preview h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.creator-preview h3 i {
    color: var(--accent-color);
}

/* Live Preview */
.invitation-live-preview {
    margin-bottom: 30px;
}

.invitation-frame {
    max-width: 400px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.invitation-frame.elegant-theme {
    background: linear-gradient(135deg, #fdf8f3, #f5e6d3);
    border: 3px solid var(--primary-gold);
}

.invitation-frame.islamic-theme {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 3px solid #4caf50;
}

.invitation-frame.modern-theme {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid #64ffda;
    color: var(--white);
}

.invitation-frame.floral-theme {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    border: 3px solid #e91e63;
}

.invitation-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(201, 168, 124, 0.3);
    border-radius: 15px;
    pointer-events: none;
}

.invitation-content {
    position: relative;
    z-index: 1;
}

.preview-intro {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.preview-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.modern-theme .preview-title {
    color: #64ffda;
}

.preview-of {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.preview-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin: 15px 0;
}

.modern-theme .preview-names {
    color: var(--white);
}

.preview-date-box {
    margin: 20px 0;
}

.preview-date {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.preview-time {
    font-size: 14px;
    color: var(--text-medium);
    margin: 15px 0;
}

.preview-time i {
    color: var(--primary-gold);
    margin-right: 5px;
}

.preview-venue {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.preview-venue i {
    color: var(--accent-color);
    margin-right: 5px;
}

.preview-city {
    font-size: 13px;
    color: var(--text-light);
}

.preview-message {
    font-style: italic;
    font-size: 13px;
    color: var(--text-medium);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Preview Actions */
.preview-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.action-btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.action-btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.action-btn-outline .fa-whatsapp:hover {
    color: #25D366;
}

.save-invitation-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.save-invitation-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Wedding Checklist
   ============================================ */
.checklist-container {
    max-width: 800px;
    margin: 0 auto;
}

.checklist-header {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.checklist-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.checklist-header h2 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-medium);
}

.checklist-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checklist-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.checklist-category h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.checklist-category h3 i {
    color: var(--primary-gold);
    width: 24px;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-cream);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.checklist-item:hover {
    background: var(--bg-light);
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.checklist-item input:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checklist-item input:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-weight: 700;
}

.task-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.checklist-item input:checked ~ .task-text {
    text-decoration: line-through;
    color: var(--text-light);
}

.task-action {
    padding: 8px 16px;
    background: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.task-action:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* ============================================
   Bookings Tab
   ============================================ */
.bookings-container {
    max-width: 800px;
    margin: 0 auto;
}

.bookings-header {
    margin-bottom: 30px;
}

.bookings-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.bookings-header h2 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.no-bookings {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.no-bookings i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-bookings h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-bookings p {
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* ============================================
   Budget Tab
   ============================================ */
.budget-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.budget-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.budget-header h2 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.budget-total {
    display: flex;
    align-items: center;
    gap: 15px;
}

.budget-total span {
    font-size: 14px;
    color: var(--text-medium);
}

.budget-total input {
    width: 150px;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
}

.budget-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.budget-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.budget-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.budget-icon.spent {
    background: #ffebee;
    color: #f44336;
}

.budget-icon.remaining {
    background: #e8f5e9;
    color: #4caf50;
}

.budget-info {
    display: flex;
    flex-direction: column;
}

.budget-label {
    font-size: 14px;
    color: var(--text-light);
}

.budget-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.budget-items {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.budget-items h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.expense-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-cream);
    border-radius: 12px;
}

.expense-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-dark);
}

.expense-info i {
    color: var(--primary-gold);
    width: 20px;
}

.expense-amount {
    width: 120px;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    text-align: right;
    font-family: inherit;
}

.expense-amount:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .invitation-creator {
        grid-template-columns: 1fr;
    }

    .creator-sidebar {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 100px 0 20px;
    }

    .dashboard-welcome h1 {
        font-size: 1.8rem;
    }

    .dashboard-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 12px;
    }

    .tab-btn span {
        display: none;
    }

    .tab-btn i {
        font-size: 20px;
    }

    .theme-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .invitation-frame {
        padding: 30px 20px;
    }

    .preview-title {
        font-size: 2rem;
    }

    .preview-names {
        font-size: 1.5rem;
    }

    .preview-actions {
        flex-direction: column;
    }

    .action-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .budget-summary {
        grid-template-columns: 1fr;
    }

    .budget-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
