/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base font styling */
body {
    font-family: 'Inter', sans-serif;
    margin-bottom: 60px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Button focus styling */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Logo header styling */
.logo-header {
    width: 20%;
}

/* Card and container styling */
.section-card {
    background-color: #fff;
    color: #505d68;
    display: flex;
    flex-direction: column;
    height: auto;
    font-weight: 100;
    border: 1px solid rgba(0,0,0,.125);
    padding-bottom: 10px;
    border-radius: 5px;
}

.sticky-top {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    position: sticky;
    top: -3px;
    z-index: 1030;
    margin-bottom: .5em;
    padding: .75em;
}

/* Form element styling */
.control-label {
    color: #536387;
    font-size: 14px;
    line-height: 24px;
    display: block;
    margin-top: 10px;
    margin-bottom: 2px;
}

.form-check-input {
    margin-bottom: 10px;
    margin-right: 10px;
}

.form-check-label {
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    line-height: 24px;
    color: #536387;
}

    .form-check-label a {
        margin-left: 5px;
        color: #29a5d4;
    }

.form-heading {
    padding: .5em .7em;
    margin-bottom: .5em;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 1.25em;
    font-weight: 100;
    transition: background-color .1s;
}

/* Button styling */
.btn-primary {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

    .btn-primary:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
        background-color: #5952e4;
    }

.btn-search {
    border-radius: 5px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
}

    .btn-search:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.btn-previous {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

    .btn-previous:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.btn-next {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

    .btn-next:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.btn-index-number {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

    .btn-index-number:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

/* Word search game specific styling */
.wordsearch-grid {
    margin: 20px 0;
}

.grid-cell {
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

    .grid-cell.selected {
        background: #29a5d4;
        color: white;
    }

table.word-search {
    border-collapse: collapse;
}

    table.word-search td {
        padding: 0;
    }

.list-group-item.found {
    text-decoration: line-through;
    color: #2e7d32;
}

/* Responsive table styling */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

    .table th,
    .table td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }

    .table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
    }

    .table tbody + tbody {
        border-top: 2px solid #dee2e6;
    }

.table-bordered {
    border: 1px solid #dee2e6;
}

    .table-bordered th,
    .table-bordered td {
        border: 1px solid #dee2e6;
    }

/* Alert styling */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* Remove the blue background from DTLearn if applicable */
body {
    background-color: #fff;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: white;
}

.nav-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

/* Add this to your existing CSS file */

.login-page {
    background-color: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 15px;
    margin: 0 auto;
}

.login-form-container {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}