﻿/* -------------------- Global -------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body, button, input, select, textarea {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to bottom right, #f0f4f8, #d9e2ec);
    font-weight: 400;
}

/* Headings */
h1, h2, h3 {
    font-weight: 700;
}

h4, h5, h6 {
    font-weight: 500;
}

/* -------------------- Form Container -------------------- */
.form-container {
    width: min(90%, 1200px);
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Stats panel */
.stats-panel {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 10px;
    background-color: #f5f5f5;
    margin-bottom: 1.5rem;
}

/* -------------------- Form Elements -------------------- */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-weight: 500;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

    input:focus,
    textarea:focus {
        border-color: #258cfb;
        box-shadow: 0 0 0 3px rgba(37, 140, 251, 0.2);
        outline: none;
    }

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25) !important;
}

.text-danger {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* -------------------- Buttons -------------------- */
button[type="submit"] {
    background-color: #258cfb;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    padding: 0.75rem;
    width: 100%; /* full width on mobile */
}

    button[type="submit"]:hover {
        background-color: #1a6fd0;
        transform: translateY(-1px);
    }

    button[type="submit"]:active {
        transform: translateY(0);
    }

.submit-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #258cfb;
    font-weight: 500;
}

    .submit-link:hover {
        text-decoration: underline;
    }

/* -------------------- Table Styling -------------------- */
.table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

    .table th,
    .table td {
        padding: 0.75rem 1rem;
        border: 1px solid #ddd;
    }

.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

    .table-wrapper table {
        font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    }

.number-cell {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    max-width: 300px; /* set a reasonable width */
    word-wrap: break-word; /* legacy support */
    overflow-wrap: break-word;
    white-space: normal; /* allow wrapping */
    font-family: monospace; /* optional, makes digits line up */
}


.comment-cell {
    max-width: 400px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* -------------------- Pagination -------------------- */
/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none; /* remove bullets */
    padding-left: 0;
    margin-top: 1rem;
    gap: 0.3rem;
}

    .pagination .page-item {
        display: inline;
    }

    .pagination .page-link {
        display: block;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        border: 1px solid #ddd;
        background-color: #f9f9f9;
        color: #333;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 0.95rem;
    }

        .pagination .page-link:hover {
            background-color: #007bff;
            color: #fff;
            border-color: #007bff;
        }

    .pagination .active .page-link {
        background-color: #007bff;
        border-color: #007bff;
        color: #fff;
        font-weight: 600;
    }

    .pagination .disabled .page-link {
        background-color: #eee;
        color: #aaa;
        border-color: #ddd;
        cursor: not-allowed;
        pointer-events: none;
    }

    /* Style the ellipsis */
    .pagination .page-item.disabled span.page-link {
        background: none;
        border: none;
        color: #555;
        font-weight: bold;
        cursor: default;
    }
/* -------------------- Form Layout -------------------- */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .form-row .form-group {
        flex: 1 1 300px;
    }

    .form-row input[type="text"],
    .form-row textarea,
    .form-row input#Number {
        width: 100%;
    }

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

    .form-actions button[type="submit"] {
        width: auto;
        min-width: 120px;
        padding: 0.75rem 1.5rem;
    }

/* -------------------- Responsive -------------------- */
@media (max-width: 800px) {
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions {
        justify-content: stretch;
    }

        .form-actions button[type="submit"] {
            width: 100%;
        }
}
utton[type="submit"] {
            width: 100%;
        }
}
.number-cell {
    word-break: break-word; /* forces break at <wbr> */
    white-space: normal; /* allow wrapping */
}

