/*body {*/
/*    font-family: Arial, sans-serif;*/
/*    background-color: #f4f4f4;*/
/*    margin: 0;*/
/*    padding: 20px;*/
/*    min-height: 100vh;*/
/*    color: #333;*/
/*}*/

/*.container {*/
/*    background-color: #fff;*/
/*    padding: 20px;*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 6px 18px rgba(0,0,0,0.08);*/
/*    width: 90%;*/
/*    max-width: 1200px;*/
/*    margin: 20px auto;*/
/*}*/

/*.centered {*/
/*    max-width: 500px;*/
/*    margin: 60px auto;*/
/*}*/

/*.topbar {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    margin-bottom: 10px;*/
/*}*/

/*.logout {*/
/*    text-decoration: none;*/
/*    color: #fff;*/
/*    background: #007BFF;*/
/*    padding: 8px 12px;*/
/*    border-radius: 4px;*/
/*}*/

/*h1 {*/
/*    margin: 0;*/
/*    color: #222;*/
/*}*/

/*form {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

/*label {*/
/*    margin-top: 10px;*/
/*}*/

/*input, select, textarea, button {*/
/*    padding: 10px;*/
/*    margin-top: 5px;*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 4px;*/
/*    font-size: 14px;*/
/*}*/

/*textarea {*/
/*    min-height: 80px;*/
/*    resize: vertical;*/
/*}*/

/*button {*/
/*    background-color: #28a745;*/
/*    color: white;*/
/*    cursor: pointer;*/
/*    margin-top: 20px;*/
/*    border: none;*/
/*}*/

/*button:hover {*/
/*    background-color: #218838;*/
/*}*/

/*.question {*/
/*    margin-bottom: 15px;*/
/*}*/

/*table {*/
/*    width: 100%;*/
/*    border-collapse: collapse;*/
/*    margin-top: 20px;*/
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.04);*/
/*}*/

/*th, td {*/
/*    border: 1px solid #e9e9e9;*/
/*    padding: 12px;*/
/*    text-align: left;*/
/*}*/

/*tr:nth-child(even) {*/
/*    background: #fafafa;*/
/*}*/

/*th {*/
/*    background-color: #f7f7f7;*/
/*    font-weight: 600;*/
/*}*/

/*.error {*/
/*    color: red;*/
/*    text-align: center;*/
/*}*/

/*#balloons {*/
/*    position: relative;*/
/*    height: 400px;*/
/*    overflow: hidden;*/
/*}*/

/*.balloon {*/
/*    position: absolute;*/
/*    width: 50px;*/
/*    height: 70px;*/
/*    background-color: red;*/
/*    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;*/
/*    animation: float 6s ease-in-out infinite;*/
/*}*/

/*.balloon:nth-child(2n) {*/
/*    background-color: blue;*/
/*}*/

/*.balloon:nth-child(3n) {*/
/*    background-color: green;*/
/*}*/

/*@keyframes float {*/
/*    0% { transform: translateY(100vh) rotate(0deg); }*/
/*    100% { transform: translateY(-100px) rotate(360deg); }*/
/*}*/

/*form {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

/*label {*/
/*    margin-top: 10px;*/
/*}*/

/*input, select, textarea, button {*/
/*    padding: 10px;*/
/*    margin-top: 5px;*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 4px;*/
/*}*/

/*button {*/
/*    background-color: #4CAF50;*/
/*    color: white;*/
/*    cursor: pointer;*/
/*    margin-top: 20px;*/
/*}*/

/*button:hover {*/
/*    background-color: #45a049;*/
/*}*/

/*.question {*/
/*    margin-bottom: 15px;*/
/*}*/

/*table {*/
/*    width: 100%;*/
/*    border-collapse: collapse;*/
/*    margin-top: 20px;*/
/*}*/

/*th, td {*/
/*    border: 1px solid #ddd;*/
/*    padding: 8px;*/
/*    text-align: left;*/
/*}*/

/*th {*/
/*    background-color: #f2f2f2;*/
/*}*/

/*.error {*/
/*    color: red;*/
/*    text-align: center;*/
/*}*/

/*#balloons {*/
/*    position: relative;*/
/*    height: 400px;*/
/*    overflow: hidden;*/
/*}*/

/*.balloon {*/
/*    position: absolute;*/
/*    width: 50px;*/
/*    height: 70px;*/
/*    background-color: red;*/
/*    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;*/
/*    animation: float 6s ease-in-out infinite;*/
/*}*/

/*.balloon:nth-child(2n) {*/
/*    background-color: blue;*/
/*}*/

/*.balloon:nth-child(3n) {*/
/*    background-color: green;*/
/*}*/

/*@keyframes float {*/
/*    0% { transform: translateY(100vh) rotate(0deg); }*/
/*    100% { transform: translateY(-100px) rotate(360deg); }*/
/*}*/

/* =====================
   Global Styles
===================== */
/* =====================
   Base Styles
===================== */
/* =====================
   Base Styles
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 10px;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    margin: 15px 0 10px 0;
    color: #222;
    word-wrap: break-word;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.3rem;
}

.container {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
}

.centered {
    max-width: 500px;
    width: 100%;
    margin: 30px auto;
    padding: 0 15px;
}

/* =====================
   Topbar / Buttons
===================== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar h1 {
    flex: 1 1 auto;
    min-width: 150px;
    margin: 0;
    word-break: break-word;
}

.logout {
    text-decoration: none;
    color: #fff;
    background: #007BFF;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: none;
}

.logout:hover {
    background: #0056b3;
}

button {
    background-color: #28a745;
    color: #fff;
    cursor: pointer;
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* =====================
   Forms
===================== */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

label {
    margin-top: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

input, select, textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: Arial, sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.question {
    margin-bottom: 15px;
    width: 100%;
}

/* =====================
   Tables
===================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table > * {
    display: block;
    width: 100%;
}

thead, tbody {
    display: block;
    width: 100%;
}

tr {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    border: 1px solid #e9e9e9;
}

th, td {
    flex: 1 1 200px;
    min-width: 150px;
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
    word-wrap: break-word;
    border-right: 1px solid #e9e9e9;
}

th:last-child, td:last-child {
    border-right: none;
}

th {
    background-color: #f7f7f7;
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background-color: #f0f0f0;
}

/* =====================
   Table Actions
===================== */
table form {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

table form textarea {
    min-height: 60px;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

table form button {
    width: 100%;
    margin: 0;
    font-size: 0.85rem;
    padding: 8px 10px;
}

table a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    word-break: break-word;
}

table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* =====================
   Error Messages
===================== */
.error {
    color: #d32f2f;
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 6px;
    width: 100%;
}

/* =====================
   Balloons Animation
===================== */
#balloons {
    position: relative;
    height: 300px;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
}

.balloon {
    position: absolute;
    width: 40px;
    height: 60px;
    background-color: red;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: float 6s ease-in-out infinite;
}

.balloon:nth-child(2n) { 
    background-color: blue; 
}

.balloon:nth-child(3n) { 
    background-color: green; 
}

@keyframes float {
    0% { 
        transform: translateY(100vh) rotate(0deg); 
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* =====================
   Small Mobile (320px - 480px)
===================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    body {
        padding: 8px;
    }

    .container {
        padding: 10px;
        margin: 5px auto;
        border-radius: 8px;
    }
    
    .logout {
        width: 90% !important;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .topbar {
        margin-bottom: 15px;
        gap: 8px;
    }

    .topbar h1 {
        width: 100%;
    }

    .logout {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 0.85rem;
    }

    input, select, textarea {
        font-size: 16px;
        padding: 12px;
    }

    textarea {
        min-height: 70px;
    }

    button {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-top: 12px;
    }

    table {
        margin-top: 15px;
    }

    th, td {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 8px;
        border-right: none;
    }

    tr {
        margin-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }

    th {
        display: none;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: #007BFF;
    }

    table form button {
        max-width: 100%;
    }

    .centered {
        padding: 0 10px;
    }

    #balloons {
        height: 250px;
    }

    .balloon {
        width: 35px;
        height: 50px;
    }
}

/* =====================
   Tablet (481px - 768px)
===================== */
@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        padding: 12px;
    }

    .container {
        padding: 15px;
        margin: 10px auto;
    }
    .logout {
        width: 90% !important;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .topbar {
        margin-bottom: 15px;
    }

    button {
        max-width: 100%;
        margin-top: 12px;
    }

    table {
        margin-top: 15px;
    }

    th, td {
        padding: 8px;
        font-size: 0.85rem;
    }

    table form textarea {
        min-height: 60px;
    }

    #balloons {
        height: 350px;
    }
}

/* =====================
   Desktop (769px and up)
===================== */
@media (min-width: 769px) {
    .container {
        width: 85%;
        max-width: 1200px;
        padding: 25px;
        margin: 20px auto;
    }

    button {
        width: auto;
        max-width: 200px;
    }

    .topbar {
        margin-bottom: 25px;
    }

    th, td {
        padding: 12px;
        font-size: 0.95rem;
    }

    input, select, textarea {
        font-size: 1rem;
    }

    #balloons {
        height: 400px;
    }

    .balloon {
        width: 50px;
        height: 70px;
    }
}