body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Normal container (login / small pages) */
.container {
    background: rgba(255, 255, 255, 0.55);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* ========================= */
/* CALENDAR (MAIN FOCUS AREA) */
/* ========================= */
.calendar-container {
    max-width: 1200px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* 👇 DEFAULT TRANSPARENCY (YOU CONTROL THIS) */
    background: rgba(255, 255, 255, 0.35);

    /* ✨ modern glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* TITLE COLORS */
h1, h2 {
    color: #333;
}

/* INPUTS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* BUTTONS */
button, .btn {
    background-color: #5c67f2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

button:hover, .btn:hover {
    background-color: #4a54e1;
}

/* ERROR / SUCCESS */
.error {
    color: #e74c3c;
    margin-bottom: 10px;
}

.success {
    color: #2ecc71;
    margin-bottom: 10px;
}

/* CAPTCHA */
.captcha-box {
    background: #eee;
    padding: 10px;
    margin: 10px 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* GRID */
.routine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CARDS */
.routine-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.routine-card.completed {
    background-color: #e6ffe6;
    border-color: #2ecc71;
}

.routine-card h3 {
    margin-top: 0;
    color: #5c67f2;
}

.routine-card textarea {
    width: calc(100% - 20px);
    min-height: 80px;
    resize: vertical;
    margin-bottom: 10px;
}

.routine-card .status-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.completed-row {
    background-color: #d4edda;
}

/* MOBILE */
@media (max-width: 768px) {
    .routine-grid {
        grid-template-columns: 1fr;
    }

    .container.calendar-container {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin: 10px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        top: 12px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }

    td:nth-of-type(1):before { content: "Day"; }
    td:nth-of-type(2):before { content: "Routine"; }
    td:nth-of-type(3):before { content: "Status"; }
}

.opacity-control {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.opacity-control label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.opacity-control input {
    width: 120px;
}

