/* Styles for Aaron Offboarding Portal - Pink, Cute & Glittery */

:root {
    --primary-pink: #ff69b4;       /* Hot Pink */
    --pastel-pink-light: #fff0f5;  /* Lavender Blush */
    --pastel-pink: #ffb7d5;        /* Cotton Candy Pink */
    --bubblegum: #ffc0cb;          /* Bubblegum Pink */
    --white-glass: rgba(255, 255, 255, 0.65);
    --border-pink: rgba(255, 105, 180, 0.25);
    --text-color: #5c3a4b;         /* Cute dark magenta-brown for high readability */
    --text-color-muted: #8c6a7a;
    --success-green: #4ade80;
    --error-red: #ff4d6d;
    --font-primary: 'Fredoka', 'Quicksand', sans-serif;
    --font-fancy: 'Pacifico', cursive;
    --transition-speed: 0.3s;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #ffeef2 0%, #ffd1dc 50%, #ffb7d5 100%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px 10px;
    position: relative;
}

/* Canvas overlay for cursor glitter */
#glitter-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Sparkle Background Layer */
.sparkle-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: floatSparkle 4s ease-in-out infinite;
    user-select: none;
    opacity: 0.8;
}

@keyframes floatSparkle {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-40px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* App Header */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: var(--white-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-pink);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
}

.sticker-container {
    margin-bottom: 15px;
    display: inline-block;
}

.floating-sticker {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
    animation: floatAnimation 6s ease-in-out infinite;
    object-fit: cover;
}

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

.sparkle-title {
    font-family: var(--font-fancy);
    font-size: 2.8rem;
    color: var(--primary-pink);
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(255, 105, 180, 0.2);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color-muted);
    margin-bottom: 15px;
}

.status-badge {
    background-color: var(--primary-pink);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
}

.error-pulse {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 105, 180, 0);
    }
}

.protocol-bar {
    width: 80%;
    max-width: 400px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin: 10px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 105, 180, 0.2);
}

.protocol-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pastel-pink) 0%, var(--primary-pink) 100%);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.progress-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-pink);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: var(--white-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-pink);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pink-icon {
    color: var(--primary-pink);
    width: 28px;
    height: 28px;
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--primary-pink);
    font-family: var(--font-primary);
    font-weight: 700;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 20px;
}

/* Checklist Progress */
.todo-progress-container {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.todo-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.todo-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-pink);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Todo List items */
.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.01);
}

.todo-item input[type="checkbox"] {
    display: none;
}

.todo-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--pastel-pink);
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.todo-checkbox::after {
    content: "💖";
    font-size: 0.7rem;
    display: none;
}

.todo-item input:checked + .todo-checkbox {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.todo-item input:checked + .todo-checkbox::after {
    display: block;
}

.todo-text {
    font-weight: 500;
    transition: color 0.2s, text-decoration 0.2s;
}

.todo-item input:checked ~ .todo-text {
    color: var(--text-color-muted);
    text-decoration: line-through;
}

/* Possessions Inventory */
.inventory-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.inventory-table-wrapper {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 105, 180, 0.15);
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.25);
    text-align: left;
}

.inventory-table th, .inventory-table td {
    padding: 12px;
    font-size: 0.95rem;
}

.inventory-table th {
    background-color: rgba(255, 105, 180, 0.1);
    color: var(--text-color);
    font-weight: 700;
}

.inventory-table tr {
    border-bottom: 1px solid rgba(255, 105, 180, 0.08);
    transition: background-color 0.2s;
}

.inventory-table tr:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.inventory-actions {
    display: flex;
    gap: 6px;
}

.action-pill {
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-trash {
    background-color: rgba(255, 77, 109, 0.15);
    color: var(--error-red);
}
.pill-trash.active, .pill-trash:hover {
    background-color: var(--error-red);
    color: white;
}

.pill-donate {
    background-color: rgba(255, 165, 0, 0.15);
    color: orange;
}
.pill-donate.active, .pill-donate:hover {
    background-color: orange;
    color: white;
}

.pill-return {
    background-color: rgba(74, 222, 128, 0.15);
    color: #16a34a;
}
.pill-return.active, .pill-return:hover {
    background-color: #16a34a;
    color: white;
}

.delete-item-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-color-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.delete-item-btn:hover {
    color: var(--error-red);
}

.add-item-form {
    display: flex;
    gap: 10px;
}

.add-item-form input {
    flex-grow: 1;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--pastel-pink);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    background-color: #fff;
    transition: border-color 0.2s;
}

.add-item-form input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.2);
}

/* Buttons */
.cute-btn {
    background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--primary-pink) 100%);
    color: white;
    font-family: var(--font-primary);
    font-weight: 700;
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cute-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.45);
}

.cute-btn:active {
    transform: scale(0.98);
}

.small-btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.secondary-btn {
    background: #fff;
    color: var(--primary-pink);
    border: 2px solid var(--pastel-pink);
    box-shadow: none;
}

.secondary-btn:hover {
    background: #ffeef2;
    color: var(--primary-pink);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.1);
}

/* Sassy Text Generator */
.generator-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tone-btn {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--pastel-pink);
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tone-btn:hover, .tone-btn.active {
    background-color: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
}

.text-output-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-output-container textarea {
    width: 100%;
    height: 120px;
    border-radius: 16px;
    border: 1px solid var(--pastel-pink);
    padding: 15px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-color);
    resize: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.text-output-container textarea:focus {
    border-color: var(--primary-pink);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.15);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--pastel-pink);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-color);
    outline: none;
    background-color: #fff;
    cursor: pointer;
}

.form-group select:focus {
    border-color: var(--primary-pink);
}

/* Radios */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label span {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--pastel-pink);
    padding: 10px 14px;
    border-radius: 12px;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.radio-label input:checked + span {
    background-color: var(--pastel-pink);
    color: var(--text-color);
    border-color: var(--primary-pink);
    font-weight: 700;
}

/* Checkboxes */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input {
    margin-top: 4px;
    accent-color: var(--primary-pink);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
}

/* Exit Certificate */
.hidden {
    display: none !important;
}

.exit-certificate {
    background: radial-gradient(circle, #fffdf8 0%, #fff7e6 100%);
    border: 4px double var(--pastel-pink);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.exit-certificate::before {
    content: "🌸";
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 1rem;
    opacity: 0.6;
}

.exit-certificate::after {
    content: "🌸";
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 1rem;
    opacity: 0.6;
}

.cert-title {
    font-family: var(--font-fancy);
    font-size: 1.6rem;
    color: var(--primary-pink);
    margin-bottom: 12px;
}

.cert-badge {
    background-color: var(--success-green);
    color: white;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.cert-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cert-details {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.cert-details p {
    margin-bottom: 6px;
}

.cert-details p:last-child {
    margin-bottom: 0;
}

/* Flowchart Card */
.flowchart-container {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px dashed var(--pastel-pink);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flowchart-step {
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.flow-question {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.flow-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
}

.flow-btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

.no-text-banner {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.huge-no {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--error-red);
    margin-bottom: 10px;
}

.no-text-banner p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.time-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border-pink);
    border-radius: 16px;
    padding: 12px 6px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.05);
    transition: transform 0.2s;
}

.time-block:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.6);
}

.time-block span {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-pink);
    font-family: var(--font-primary);
    text-shadow: 1px 1px 0px #fff;
    line-height: 1.2;
}

.time-block label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .time-block span {
        font-size: 1.6rem;
    }
    .time-block label {
        font-size: 0.65rem;
    }
}

/* Cute Slider Styles */
.cute-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 6px;
    background: var(--pastel-pink);
    outline: none;
    margin: 10px 0;
}

.cute-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    transition: transform 0.1s ease;
}

.cute-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-color-muted);
    font-weight: 700;
    margin-top: 4px;
}

#slider-val {
    color: var(--primary-pink);
}

/* Results block */
.results-title {
    font-size: 1.1rem;
    color: var(--primary-pink);
    margin-bottom: 12px;
    font-weight: 700;
}

.results-list {
    list-style: none;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-pink);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.results-list li {
    font-size: 0.95rem;
}

/* App Footer */
.app-footer {
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.85rem;
    padding: 30px 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--pastel-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* Responsive Grid */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .app-header {
        padding: 20px 10px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .sparkle-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    
    .floating-sticker {
        width: 100px;
        height: 100px;
    }
    
    .glass-card {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile-first table layout under 500px */
@media (max-width: 500px) {
    .inventory-table, 
    .inventory-table thead, 
    .inventory-table tbody, 
    .inventory-table th, 
    .inventory-table td, 
    .inventory-table tr {
        display: block;
    }
    
    .inventory-table thead {
        display: none; /* Hide headers on mobile */
    }
    
    .inventory-table tr {
        padding: 12px 6px;
        border-bottom: 2px dashed rgba(255, 105, 180, 0.15);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .inventory-table td {
        padding: 0;
        text-align: left;
    }
    
    .inventory-table td:first-child {
        font-weight: 700;
        font-size: 1rem;
        color: var(--text-color);
    }
    
    .inventory-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }
    
    .action-pill {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .delete-item-btn {
        margin-left: auto; /* Push delete button to the right */
        padding: 6px;
    }
    
    .add-item-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-item-form input {
        width: 100%;
    }
    
    .add-item-form button {
        width: 100%;
    }
}
