:root {
    --primary-color: #ff6b81;
    --secondary-color: #ff99cc;
    --bg-gradient: linear-gradient(135deg, #fce3ec 0%, #ffe8cc 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-color: #5a3e5a;
    --purple-deep: #6f42c1;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: var(--text-color);
    position: relative;
}

/* Floating Hearts Background */
.bg-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.heart-bg {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    animation: floatHeart 10s infinite linear;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--purple-deep);
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 107, 129, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    color: white;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 129, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.6);
}

/* Admin Button */
.admin-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.error-msg {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* Progress Tracker */
.progress-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
    flex-wrap: wrap;
    /* On very small screens */
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 20%;
    opacity: 0.6;
    transition: opacity 0.5s;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 10px;
    border: 3px solid #ccc;
    transition: all 0.5s;
}

.progress-step.active .step-icon {
    border-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-color);
    animation: pulse 1.5s infinite;
}

.progress-step.completed .step-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--purple-deep);
}

/* Progress Bar Line */
.progress-line-bg {
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-line-fill {
    position: absolute;
    top: 20px;
    left: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 0;
    transition: width 0.5s ease;
    width: 0%;
}

@keyframes pulse {
    0% {
        transform: scale(1.0);
        box-shadow: 0 0 0 0 rgba(255, 107, 129, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 107, 129, 0);
    }

    100% {
        transform: scale(1.0);
        box-shadow: 0 0 0 0 rgba(255, 107, 129, 0);
    }
}

/* Admin Panel */
.admin-controls {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logout-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.user-info {
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
}

.status-select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.update-btn {
    margin-top: 10px;
    background: var(--purple-deep);
    border: none;
    color: white;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-tab {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: var(--purple-deep);
    padding: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.auth-tab.active {
    opacity: 1;
    border-bottom: 3px solid var(--primary-color);
}

/* Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
    /* Hidden by default */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Admin Dashboard Table */
.dashboard-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: rgba(var(--purple-deep), 0.1);
    color: var(--purple-deep);
    font-weight: bold;
}

tr:hover {
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple-deep);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 2000;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}