/* assets/css/style.css */

:root {
    --primary-color: #ff6b8b;
    --primary-light: #fff0f3;
    --primary-dark: #e04d70;
    --secondary-color: #6c5ce7;
    --accent-color: #ffd23f;
    --bg-cream: #faf7f2;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 15px 35px rgba(255, 107, 139, 0.15);
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.brand-ice {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.brand-weave {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.6rem;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.bg-pastel {
    background-color: #ffeef2;
}

/* Premium Card Design */
.card-premium {
    background: #ffffff;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Coupon Card Styling */
.coupon-voucher {
    background: linear-gradient(135deg, #ffffff 0%, #fff6f8 100%);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: visible;
}

/* Coupon dashed border side-cutouts (ticket style) */
.coupon-voucher::before,
.coupon-voucher::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background-color: var(--bg-cream);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.coupon-voucher::before {
    left: -16px;
    border-right: 2px dashed var(--primary-color);
}

.coupon-voucher::after {
    right: -16px;
    border-left: 2px dashed var(--primary-color);
}

.coupon-header {
    border-bottom: 2px dashed #ffe3e8;
    padding-bottom: 1.5rem;
}

.coupon-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.coupon-code-box {
    background: var(--primary-light);
    border: 1px dashed var(--primary-color);
    border-radius: var(--border-radius-md);
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 139, 0.25);
}

/* Badges */
.badge-active {
    background-color: #2ecc71;
    color: #ffffff;
}

.badge-used {
    background-color: #95a5a6;
    color: #ffffff;
}

.badge-expired {
    background-color: #f39c12;
    color: #ffffff;
}

.badge-cancelled {
    background-color: #e74c3c;
    color: #ffffff;
}

/* Admin Sidebar Layout */
.admin-sidebar {
    min-height: calc(100vh - 72px);
    background-color: #2c3e50;
    color: #ecf0f1;
}

.admin-sidebar .nav-link {
    color: #bdc3c7;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: #34495e;
    border-radius: 8px;
}

/* Text styles */
.text-muted-light {
    color: #b2bec3;
}
.fs-7 {
    font-size: 0.8rem;
}
.font-sans {
    font-family: 'Outfit', sans-serif;
}

/* --- PREMIUM DIGITAL COUPON REDESIGN --- */
:root {
    --mint-color: #a8e6cf;
    --lavender-color: #e8dbfc;
    --strawberry-color: #ff8b94;
    --plum-color: #4a154b;
    --gold-color: #f39c12;
    --chocolate-color: #3d251e;
    
    --coupon-bg-active: linear-gradient(135deg, #ffffff 0%, #fff3f5 50%, #f6f0ff 100%);
    --coupon-bg-redeemed: linear-gradient(135deg, #f5f6fa 0%, #dcdde1 100%);
    --coupon-bg-expired: linear-gradient(135deg, #f5f6fa 0%, #e1b12c 100%);
    --coupon-bg-cancelled: linear-gradient(135deg, #f5f6fa 0%, #ff8b94 100%);
}

.coupon-container-mobile {
    max-width: 420px;
    margin: 0 auto;
    perspective: 1000px;
}

.coupon-card-premium {
    background: var(--coupon-bg-active);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(255, 107, 139, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.coupon-card-premium:hover {
    transform: translateY(-8px) rotate(0.5deg);
    box-shadow: 0 30px 50px rgba(255, 107, 139, 0.2), 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Coupon States */
.coupon-card-premium.state-redeemed {
    background: var(--coupon-bg-redeemed);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    filter: grayscale(20%);
}
.coupon-card-premium.state-redeemed .coupon-value,
.coupon-card-premium.state-redeemed .brand-ice,
.coupon-card-premium.state-redeemed .brand-weave {
    color: #7f8c8d !important;
}

.coupon-card-premium.state-expired {
    background: var(--coupon-bg-expired);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.coupon-card-premium.state-expired .coupon-value,
.coupon-card-premium.state-expired .brand-ice,
.coupon-card-premium.state-expired .brand-weave {
    color: #7f8c8d !important;
}

.coupon-card-premium.state-cancelled {
    background: var(--coupon-bg-cancelled);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Perforated ticket styling */
.ticket-divider-container {
    position: relative;
    padding: 1.5rem 0;
}

.ticket-circle-left,
.ticket-circle-right {
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: var(--bg-cream);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ticket-circle-left {
    left: -14px;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.ticket-circle-right {
    right: -14px;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
}

.ticket-dashed-line {
    border-top: 2px dashed rgba(255, 107, 139, 0.2);
    height: 1px;
    width: 100%;
}

/* Premium Code Container */
.premium-code-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: 2px dashed var(--primary-color);
    border-radius: 20px;
    padding: 1.2rem;
    position: relative;
    transition: transform 0.2s ease;
}

.premium-code-wrapper:hover {
    transform: scale(1.02);
}

.premium-coupon-code {
    font-family: 'Outfit', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--plum-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-copy-code {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.25);
}

.btn-copy-code:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 139, 0.35);
    color: #ffffff;
}

.btn-copy-code.copied {
    background-color: #2ecc71;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

/* Floating Decorative Elements */
.floating-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.decor-item {
    position: absolute;
    opacity: 0.15;
    animation: floatAnimation 6s ease-in-out infinite alternate;
}

.decor-cone {
    top: 15%;
    left: 8%;
    font-size: 1.8rem;
    animation-delay: 0s;
}

.decor-icecream {
    top: 50%;
    right: 8%;
    font-size: 1.8rem;
    animation-delay: 1.5s;
}

.decor-star-1 {
    top: 5%;
    right: 15%;
    font-size: 1.2rem;
    color: var(--accent-color);
    animation-delay: 0.5s;
}

.decor-star-2 {
    bottom: 20%;
    left: 10%;
    font-size: 1.1rem;
    color: var(--accent-color);
    animation-delay: 2s;
}

.decor-sprinkle-1 {
    top: 30%;
    right: 10%;
    width: 12px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transform: rotate(30deg);
}

.decor-sprinkle-2 {
    bottom: 30%;
    right: 15%;
    width: 10px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transform: rotate(-15deg);
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-12px) rotate(10deg);
    }
}

/* Pulse animation for active status badge */
.status-badge-premium {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.status-badge-premium .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
}

.status-badge-premium.active-badge {
    background-color: #ffeef2;
    color: var(--primary-color);
}
.status-badge-premium.active-badge .pulse-dot {
    animation: pulseActive 1.5s infinite;
}

@keyframes pulseActive {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.9);
        opacity: 1;
    }
}

.status-badge-premium.redeemed-badge {
    background-color: #f1f2f6;
    color: #7f8c8d;
}

.status-badge-premium.expired-badge {
    background-color: #fef5e7;
    color: #e67e22;
}

.status-badge-premium.cancelled-badge {
    background-color: #fdedec;
    color: #e74c3c;
}

/* Glassmorphism content layout inside coupon */
.coupon-inner-content {
    position: relative;
    z-index: 2;
}

