@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-color: #ffffff;
    --card-hover: rgba(255, 255, 255, 0.15);
    --accent: #00f260;
    --danger: #ff4757;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2070&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

/* Typography & Inputs */
h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

select option {
    background: #2d3748;
    color: white;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Dashboard Styles */
.header {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.status-active {
    background: rgba(0, 242, 96, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.status-inactive {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
}

.cleaners-list {
    text-align: left;
    margin-top: 1.5rem;
}

.cleaner-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.cleaner-info {
    display: flex;
    align-items: center;
}

.cleaner-number {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 0.8rem;
}

/* Locked / Coming Soon View */
.icon-lock {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.date-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.subtext {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
}

.back-link,
.logout-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.tienda-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover,
.logout-link:hover,
.tienda-link:hover {
    color: white;
    text-decoration: underline;
}

/* Admin View Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-badge-label {
    background: #FFD700;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.date-display {
    font-weight: 600;
    font-size: 1rem;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 1rem;
}

.btn-check {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.btn-cross {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.btn-check:hover {
    background: rgba(0, 242, 96, 0.4);
    color: white;
}

.btn-cross:hover {
    background: rgba(255, 71, 87, 0.4);
    color: white;
}

/* Active States for Admin Actions & Row coloring */
.cleaned-row {
    background: rgba(0, 242, 96, 0.2);
    border: 1px solid rgba(0, 242, 96, 0.5);
}

.missed-row {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.5);
}

.btn-check.active {
    background: #00f260;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 242, 96, 0.5);
}

.btn-cross.active {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

/* Info Cards for Countdown */
.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid var(--glass-border);
}

.highlight-card {
    background: rgba(102, 126, 234, 0.2);
    /* Tint of primary color */
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.big-date {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.countdown-badge {
    display: inline-block;
    background: #fff;
    color: #444;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}
