* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f5f5; color: #333; }
.login-page { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { width: 100%; max-width: 450px; padding: 20px; }
.login-box { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-box h1 { text-align: center; margin-bottom: 10px; }
.subtitle { text-align: center; color: #666; margin-bottom: 30px; }
.login-footer { text-align: center; margin-top: 20px; }
.login-footer a { color: #667eea; text-decoration: none; }
.user-header { background: white; padding: 15px 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.header-left h2 { color: #667eea; }
.header-right { display: flex; gap: 15px; align-items: center; }
.main-container { display: flex; min-height: calc(100vh - 70px); }
.sidebar { width: 250px; background: #2c3e50; color: white; padding: 20px 0; }
.nav-link { color: white; text-decoration: none; padding: 15px 25px; display: flex; align-items: center; gap: 10px; transition: all 0.3s; }
.nav-link:hover { background: #34495e; border-left: 4px solid #667eea; }
.content { flex: 1; padding: 30px; }
.card { background: white; border-radius: 10px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); text-align: center; }
.stat-value { font-size: 2.5em; font-weight: bold; color: #667eea; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.action-btn { background: #f8f9fa; padding: 20px; border-radius: 10px; text-align: center; text-decoration: none; color: #333; transition: all 0.3s; }
.action-btn:hover { background: #667eea; color: white; }
.action-btn span { font-size: 2em; display: block; margin-bottom: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }
.form-group small { color: #666; font-size: 0.85em; display: block; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.form-grid .full-width { grid-column: 1 / -1; }
.btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s; }
.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5568d3; }
.btn-success { background: #27ae60; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-expired { background: #f8d7da; color: #721c24; }
.alert { padding: 15px; border-radius: 5px; margin-bottom: 20px; }
.alert a { font-weight: bold; text-decoration: underline; }
.alert-success { background: #d4edda; color: #155724; }
.alert-warning { background: #fff3cd; color: #856404; }
.alert-error { background: #f8d7da; color: #721c24; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.gallery-item { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-caption { padding: 10px; background: white; font-size: 0.85em; }
.gallery-actions { padding: 10px; background: white; }
.wishes-list { max-height: 400px; overflow-y: auto; margin-bottom: 15px; }
.wish-item { padding: 15px; border-bottom: 1px solid #eee; }
.wish-name { font-weight: 600; color: #667eea; margin-bottom: 5px; }
.wish-message { color: #666; margin-bottom: 5px; }
.wish-date { font-size: 0.85em; color: #999; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
table th { background: #f8f9fa; font-weight: 600; }
.info-table td:first-child { width: 40%; }
.package-box { background: white; border: 2px solid #ddd; border-radius: 10px; padding: 25px; text-align: center; margin-bottom: 20px; }
.package-price { font-size: 2em; color: #667eea; font-weight: bold; margin: 15px 0; }
.text-center { text-align: center; }
@media (max-width: 768px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; }
    .stats-grid, .info-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
}

/* Guest Actions */
.guest-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-wa {
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-wa:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa i {
    font-size: 1.1em;
}

.btn-broadcast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 1em;
    margin-bottom: 20px;
}

.btn-broadcast:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-broadcast i {
    font-size: 1.2em;
}

/* Modal for Broadcast */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-close {
    float: right;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.message-preview {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #25D366;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: pre-wrap;
    line-height: 1.8;
}

.message-preview strong {
    color: var(--primary-color);
}

.guest-select {
    margin: 20px 0;
}

.guest-select label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    background: #fafafa;
}

.checkbox-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.select-all-btn {
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.select-all-btn:hover {
    background: #5568d3;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge.sent {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}
