﻿.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 20px;
    /*padding: 30px;*/
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.editor-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    height: fit-content;
}

.preview-panel {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    min-height: 600px;
    position: relative;
}

.section {
    margin-bottom: 25px;
}

    .section h3 {
        color: #4a5568;
        margin-bottom: 15px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

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

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        color: #2d3748;
    }

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.color-picker {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.font-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .font-controls.full-width {
        grid-template-columns: 1fr;
    }

.image-upload {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .image-upload:hover {
        border-color: #667eea;
        background-color: #f7fafc;
    }

    .image-upload input {
        display: none;
    }

.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

.btn-secondary {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.invitation-preview {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    text-align: center;
}

/* Estilos de alineación */
.align-left {
    text-align: left !important;
}

.align-center {
    text-align: center !important;
}

.align-right {
    text-align: right !important;
}

.align-justify {
    text-align: justify !important;
}

/* Nuevos estilos para los botones de alineación */
.alignment-buttons {
    display: flex;
    gap: 5px;
    border-radius: 8px;
    background-color: #e2e8f0;
    padding: 5px;
    width: fit-content;
}

.alignment-btn {
    padding: 8px 12px;
    border: 2px solid transparent;
    background-color: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #4a5568;
    font-size: 16px;
}

    .alignment-btn:hover {
        background-color: #cbd5e0;
    }

    .alignment-btn.active {
        background-color: white;
        border-color: #667eea;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

/* Flex container for alignment and rotation */
.alignment-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.invitation-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.invitation-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.event-details {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.rsvp-section {
    margin-top: 30px;
}

.rsvp-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.rsvp-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.rsvp-yes {
    background: #48bb78;
    color: white;
}

.rsvp-no {
    background: #f56565;
    color: white;
}

.rsvp-maybe {
    background: #ed8936;
    color: white;
}

.rsvp-btn:hover {
    transform: scale(1.05);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 5px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .tab.active {
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.music-controls {
    margin-top: 20px;
}

.social-share {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.facebook {
    background: #3b5998;
}

.twitter {
    background: #1da1f2;
}

.whatsapp {
    background: #25d366;
}

.instagram {
    background: #e4405f;
}

.guest-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8e0;
    border-radius: 8px;
    padding: 10px;
}

.guest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.response-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-yes {
    background: #c6f6d5;
    color: #276749;
}

.status-no {
    background: #fed7d7;
    color: #742a2a;
}

.status-maybe {
    background: #feebc8;
    color: #744210;
}

.status-pending {
    background: #e2e8f0;
    color: #4a5568;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

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

.feature-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Estilos de la marca de agua */
#watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: rgba(0, 0, 0, 0.2);
    font-size: 3em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1000;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
