﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 350px;
}

    .login-container h2 {
        text-align: center;
        margin-bottom: 1.5rem;
        color: #333;
    }

    .login-container label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: bold;
        color: #555;
    }

    .login-container input {
        width: 100%;
        padding: 0.75rem;
        margin-bottom: 1.2rem;
        border: 1px solid #ccc;
        border-radius: 0.5rem;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .login-container .error {
        color: red;
        font-size: 0.85rem;
        margin-top: -0.8rem;
        margin-bottom: 1rem;
        display: none;
    }

    .login-container button {
        width: 100%;
        padding: 0.75rem;
        border: none;
        background: #4e73df;
        color: white;
        font-size: 1rem;
        border-radius: 0.5rem;
        cursor: pointer;
        transition: background 0.3s ease;
        text-shadow: 0em .1em 0em #13506D;
        border-radius: .5em;
    }

        .login-container button:hover {
            background: #3751c5;
        }

    .login-container .links {
        text-align: center;
        margin-top: 1rem;
    }

        .login-container .links a {
            color: #4e73df;
            text-decoration: none;
            font-size: 0.9rem;
        }

            .login-container .links a:hover {
                text-decoration: underline;
            }

.data-container {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 800px;
}

.TopBar table {
    margin: 20px auto;
}

.TableData table {
    border-collapse: separate; /* allow rounded corners */
    border-spacing: 0;
    width: 100%;
    margin: 20px auto;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden; /* ensures corners stay rounded */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.TableData thead tr th {
    background: linear-gradient(0deg, #d6d6d6, #f0f0f0);
}

.TableData th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    font-size: 15px;
}

.TableData th:first-child {
    border-top-left-radius: 12px;
}

    .TableData th:last-child {
        border-top-right-radius: 12px;
    }

.TableData td {
    border-top: 1px solid #ccc;
    padding: 10px;
}

/* Editable cells styling */
#dataTable td[contenteditable="true"] {
    cursor: text; /* Text cursor */
    transition: background-color 0.2s, border 0.2s;
}

    /* Highlight editable cell on hover */
    #dataTable td[contenteditable="true"]:hover {
        background-color: #fff9c4; /* soft yellow highlight */
        border: 1px dashed #999; /* dashed border to indicate editability */
    }

    /* While actively editing */
    #dataTable td[contenteditable="true"]:focus {
        outline: none;
        background-color: #fff59d; /* brighter yellow */
        border: 1px solid #666;
    }
    button {
    margin: 0px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #666, #444);
    color: white;
    cursor: pointer;
    font-size: 14px;
}

    button:hover {
        background: linear-gradient(135deg, #555, #333);
    }
