﻿/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #efefef; /*linear-gradient(135deg, #fce8a6, #ffb3b3);*/ /* Soft warm gradient */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 60px; /* To account for the footer height */
}

header {
    background-color: #ff6f61; /* Warm coral color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #f1f1f1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #555;
    position: absolute;
    bottom: 0;
    width: 100%;
    line-height: 60px; /* Vertically center the text */
}

.container {
  /*  display: grid;*/
    align-items: center;
    flex-grow: 1;
    margin-top: 20px;
}

.container-approval {
/*    display: grid;*/
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.form-container {
    display: grid;
    background-color: white; /* Soft yellow background for the form */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-size: 18px;
    font-weight: 500;
    color: #333; /* Dark gray for good contrast */
}

.divider {
    border-top: 2px solid #e0e0e0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.btn {
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: #1371b9; /* Button color to match the header */
    color: white;
}

    .btn:hover {
        background-color: #45a6d1; /* Lighter coral on hover */
        color: white;
    }

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: #ff6f61; /* Bright color for titles */
}

.card-body {
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sticky footer styles */
html {
    position: relative;
    min-height: 100%;
    font-size: 16px; /* Standard font size */
}

footer {
    white-space: nowrap;
}

.cardnew {
    position: relative;
    display: grid;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: .25rem;
    /*background-color: #f0f8ff;*/ /* Soft light blue background for the card */
}

    .cardnew h3 {
        color: #ff6f61; /* Use coral color for the title to match */
    }

    .cardnew .form-control {
        border-radius: 8px;
        padding: 10px;
        /*border: 1px solid #ff6f61;*/ /* Button color border for input fields */
    }

        .cardnew .form-control:focus {
            box-shadow: 0 0 5px rgba(255, 111, 97, 0.5); /* Soft focus shadow effect */
        }

    .cardnew select {
        border-radius: 8px;
        /*border: 1px solid #ff6f61;*/ /* Same as inputs */
        padding: 10px;
    }

label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.section-modify {
    display: grid;
    flex-direction: column; /* Stack items on mobile */
    gap: 10px;
}

.input-group {
    display: flex;
    flex-direction: row; /* Label and input side by side */
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Full width */
}

    .input-group label {
        width: 40%; /* Adjust label width */
        font-weight: bold;
    }

    .input-group input {
        width: 58%; /* Adjust input width */
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

/* Responsive for mobile */
@media (max-width: 600px) {
    .form-group label {
        font-size: 14px;
    }

    .form-control {
        width: 100%;
    }
}

.dropdown-menu-left-modify {
    left: auto !important;
    right: 0 !important;
}

@media (max-width: 576px) {
    .navbar-title {
        font-size: 1.2rem;
    }

    .dropdown-menu-left-modify {
        right: 10px !important;
    }
}

.login-container {
    height: 60vh; /* Adjust height for centering */
    display: grid;
    justify-content: center;
    align-items: flex-start; /* Move content slightly up */
    width: 100%;
    background: white !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
}

.login-box {
    background: #ffffff; /* Soft yellow background */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin-top: 20px; /* Adjust content's position to be a little higher */
}

    .login-box p {
        color: #333;
        font-size: 1.2rem;
        margin-bottom: 20px;
        text-align: center; /* Center the paragraph text */
    }

    .login-box a {
        color: #0366d6;
        text-decoration: none;
        font-weight: 500;
    }

        .login-box a:hover {
            color: #ff6f61; /* Change color on hover */
        }

.dancer-form-container {
    min-height: 80vh; /* Adjusted to ensure full coverage */
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    background: white !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 20px; /* Added padding */
    box-sizing: border-box; /* Ensures padding is included in the height */
    padding: 20px;
}

.dancer-form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

    .dancer-form-group label {
        flex: 1;
        text-align: left;
    }

    .dancer-form-group input {
        flex: 2;
        width: 100%;
    }

.dancer-section-modify {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center; /* Center content */
    text-align: center; /* Align text */
    width: 100%;
}

.navbar-title {
    font-size: 1.5rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    width: 100%;
}

.filter-dropdown-form {
    position: absolute;
    top: 100%; /* Show just below the button */
    right: 0;
    width: 300px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1050;
}

@media (max-width: 576px) {
    .dropdown-menu-right {
        left: auto !important;
        right: 0 !important;
    }
}

.word-wrap {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.btn-approve:active {
    opacity: 0.7;
}


.table th a {
    display: block;
    white-space: nowrap;
    padding: 5px;
    transition: all 0.2s;
    border-radius: 3px;
}

    .table th a:hover {
        background-color: #f0f0f0;
        cursor: pointer;
        text-decoration: none !important;
    }

.fa-sort-up, .fa-sort-down {
    color: #007bff;
}

.fa-sort {
    color: #adb5bd;
}

.table th {
    vertical-align: middle;
}

.badge-light {
    background-color: #f8f9fa;
    color: #212529;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #bd2130;
    }

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.sort-links {
    margin-top: 5px;
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-link {
    color: #6c757d;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

    .sort-link:hover {
        color: #BA0C2F;
        background-color: #f8f9fa;
        text-decoration: none;
    }

    .sort-link.active {
        color: #BA0C2F;
        font-weight: bold;
    }

    .sort-link i {
        margin-right: 3px;
    }

.highlight-checkbox {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 15px 15px 40px !important; /* Extra left padding for checkbox */
    margin: 20px 0;
    position: relative;
    transition: all 0.3s ease;
}

    .highlight-checkbox .form-check-input {
        position: absolute;
        left: 15px;
        top: 18px;
        margin: 0 !important;
    }

    .highlight-checkbox .form-check-label {
        margin-left: 10px;
        display: block;
    }

    .highlight-checkbox:hover {
        background-color: #ffe69c;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .highlight-checkbox .form-check-input:checked {
        background-color: #ffc107;
        border-color: #ffc107;
    }

    .highlight-checkbox .form-check-input:focus {
        border-color: #ffc107;
        box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    }