/* Le Cure Membership Club - Enhanced Global Styles */

:root {
    --brand: #157347;
    --brand-light: #22c55e;
    --brand-lighter: #4ade80;
    --brand-dark: #0a4d3c;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --gray-dark: #0f172a;
    --error: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a4d3c 0%, #157347 50%, #1a8559 100%);
    min-height: 100vh;
    color: #1d2720;
    line-height: 1.6;
    position: relative;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -250px;
    left: -250px;
    animation: float 20s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.15); }
}

/* Container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.brand::before {
    content: '◆';
    color: #4ade80;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #fff;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 40px 0 60px;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
                0 0 80px rgba(74, 222, 128, 0.08);
    position: relative;
    overflow: visible;
    animation: slideUp 0.6s ease-out;
    margin-bottom: 30px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #157347, #4ade80, #22c55e, #157347);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Table wrapper for scroll */
.table-wrapper {
    overflow-x: auto;
    margin: 0 -40px;
    padding: 0 40px;
}

.card > table {
    margin: 0 -40px;
    width: calc(100% + 80px);
}

/* Hero Card Specific */
.hero-card h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #0a4d3c 0%, #157347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.feature {
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(21, 115, 71, 0.15);
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: translateY(-5px) scale(1.05);
}

.feature h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature p {
    color: #64748b;
    line-height: 1.6;
}

/* Headings */
h1, h2 {
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: #0f172a;
}

h2 {
    font-size: 1.75rem;
    color: #1e293b;
}

/* Forms */
label {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #157347;
    box-shadow: 0 0 0 4px rgba(21, 115, 71, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #157347 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(21, 115, 71, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(21, 115, 71, 0.35);
}

.btn-secondary {
    background: #fff;
    color: #157347;
    border: 2px solid #157347;
}

.btn-secondary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(21, 115, 71, 0.15);
}

.btn-gray {
    background: #6c757d;
    color: white;
}

.btn-gray:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 1000px;
}

table th {
    background: linear-gradient(135deg, #157347 0%, #22c55e 100%);
    color: white;
    font-weight: 700;
    padding: 16px 14px;
    text-align: left;
    white-space: nowrap;
    font-size: 0.95rem;
}

table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    vertical-align: middle;
    font-size: 0.95rem;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: #f9fafb;
}

/* Specific column styles */
table th:first-child,
table td:first-child {
    padding-left: 20px;
}

table th:last-child,
table td:last-child {
    padding-right: 20px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success,
.badge.APPROVED {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning,
.badge.PENDING {
    background: #fef3c7;
    color: #d97706;
}

.badge-error,
.badge.REJECTED {
    background: #fee2e2;
    color: #991b1b;
}

/* Notices/Alerts */
.notice {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid;
    font-weight: 500;
}

.notice-success {
    background: #d1fae5;
    border-color: #16a34a;
    color: #065f46;
}

.notice-error {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.notice-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* Error Messages */
.error {
    background: #fee2e2;
    border: 2px solid #f1cdcd;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    color: #8a1f1f;
    font-weight: 600;
}

/* Signature Pad */
.signature-pad {
    border: 1px dashed #a7eda7;
    border-radius: 10px;
    background: #f7fff8;
    padding: 10px;
}

/* Signature Actions */
.signature-actions {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}

/* Help Text */
.help {
    color: #4d594d;
    font-size: 0.92rem;
    margin-top: 6px;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

footer .container {
    padding: 32px 20px;
    text-align: center;
}

footer small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Utilities */
.text-center {
    text-align: center;
}

.muted {
    color: #607160;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .card {
        padding: 30px 20px;
    }
    
    .card > table {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    
    .table-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    nav {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .card > table {
        margin: 0 -15px;
        width: calc(100% + 30px);
        min-width: 900px;
    }
    
    .table-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .signature-actions {
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.85rem;
    }

    table th, table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    table th:first-child,
    table td:first-child {
        padding-left: 15px;
    }

    table th:last-child,
    table td:last-child {
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-card h1 {
        font-size: 1.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .brand {
        font-size: 1.5rem;
    }
}