body {
    /* background-image: url("trianglify-20251026-13.svg"); */
    background-image: linear-gradient(to bottom, #e5eefa, #2c5466);
    background-size: cover !important;
    background-attachment: fixed;
    min-height: 100vh;
}

[v-cloak] {
    display: none;
}

.timedrive  {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.timedrive::before {
    content: '';
    flex: 1;
}
.timedrive::after {
    content: '';
    flex: 3;
}

.timedrive .container-main {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px #0004;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}
.timedrive .card-header-custom {
    background: linear-gradient(to bottom right, #f9dbd9, #6f223e);
    color: white;
    padding: 30px;
    text-align: center;
}
.timedrive .card-header-custom h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}
.timedrive .card-header-custom h1 img {
    width: 1.25em;
    height: 1.25em;
    margin-top: -0.25em;
}
.timedrive .card-body-custom {
    padding: 30px;
}

.timedrive .user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timedrive .user-email {
    font-weight: 500;
    color: #333;
}

.timedrive .project-section {
    margin-bottom: 25px;
}
.timedrive .project-section label {
    font-weight: 600;
    color: #333;
}

.timedrive .timer-display {
    background: linear-gradient(to bottom right, #f9dbd9, #6f223e);
    color: white;
    padding: 2em;
    border-radius: 1em;
    text-align: center;
    margin-bottom: 1em;
}
.timedrive .timer-time {
    font-size: 3em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}
.timedrive .timer-status {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.timedrive .timer-total {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 15px;
}

.timedrive .status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}
.timedrive .status-badge.running {
    background: #fff4;
    color: white;
}
.timedrive .status-badge.idle {
    background: #fff3;
    color: white;
}

.timedrive .btn {
    transition: background 0.3s;
}

.timedrive .btn:disabled {
    border-color: #0004;
    background: #0008;
    cursor: not-allowed;
    pointer-events: inherit; /* to make cursor setting work in Safari */
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timedrive .alert {
    animation: slide-in 0.3s ease-in-out;
}

.timedrive .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.timedrive .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.timedrive .alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.timedrive .spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 3px solid #fff4;
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.timedrive .text-muted {
    color: inherit !important;
    font-weight: lighter !important;
    opacity: 0.75 !important;
}

@media (max-width: 576px) {
    html {
        font-size: 16px !important;
    }
    body {
        margin: 0;
    }
    .timedrive {
        padding: 0;
    }
    .timedrive::before {
        content: none;
    }

    .timedrive .container-main {
        border-radius: 0 0 1rem 1rem;
    }
    .timedrive .card-header-custom h1 {
        font-size: 1.5em;
    }
    .timedrive .card-body-custom {
        padding: 20px;
    }
    .timedrive .timer-time {
        font-size: 2.5em;
    }
}
