* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-image: url('/assets/img/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    margin: 0;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 50px;
    /* Added this */
}

.container {
    width: 90%;
    max-width: 400px;
    background: #ffffff;
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: fadeSlideUp 1s ease forwards;
    margin: 0 auto;
    /* Center horizontally */
    margin-top: 50px;
}


@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 600;
}

input[type="file"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 1rem;
    border: none;
    outline: none;
    background: linear-gradient(135deg, rgba(255, 201, 40, 0.35), rgba(255, 86, 34, 0.31));
    color: #000;
    transition: 0.3s ease;
}

input[type="file"]:hover,
input[type="text"]:focus {
    background: linear-gradient(135deg, rgba(255, 201, 40, 0.18), rgba(255, 86, 34, 0.18));
    transform: scale(1.02);
}

input::placeholder {
    color: #000;
}

button {
    background: linear-gradient(135deg, #FFCA28, #FF5722);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.3);
}

.image-preview {
    margin-top: 1rem;
    width: 100%;
    height: 250px;
    background: #fff3;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s ease;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.image-preview:hover img {
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 75vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    /* padding: 1rem; */
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content img {
    max-width: 100%;
    border-radius: 1rem;
}

.crop-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    background: #FF5722;
    border: none;
    border-radius: 1rem;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.crop-btn:hover {
    background: #FF7043;
}


canvas {
    margin-top: 1rem;
    border-radius: 1rem;
    background: #111;
    max-width: 100%;
    height: auto;
}

#loader-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

#loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 87, 34, 0.2);
    border-top-color: #FF5722;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.button-group button {
    flex: 1;
}

#videoInfo {
    margin-top: 1rem;
    color: #333;
    font-size: 0.9rem;
}

#shareStatus {
    margin-top: 1rem;
    color: #333;
    font-weight: bold;
    display: none;
}

.video-options {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

.video-options button {
    margin-top: 0;
}

#cameraInput {
    display: none;
}


.navbar {
    position: fixed;
    /* better than absolute for headers */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    color: #282828;
    box-sizing: border-box;
}

.navbar .navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
    color: #282828;
}

.navbar .menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

.navbar .nav-links {
    display: flex;
    gap: 15px;
}

.navbar .nav-links a {
    color: #282828;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive styling */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .navbar .menu-toggle {
        display: block;
    }

    .navbar .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        backdrop-filter: blur(12px);
        border-radius: 0 0 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links a {
        margin: 0.5rem 0;
        width: 100%;
    }
}

.table-con {
    margin: 20px;
    border-radius: 10px;
}

.container-pro {
    background-color: #787878;
}

/* Make container scrollable on mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll issue */
.bg-white {
    background-color: #fff;
    padding: 20px;
    overflow-x: auto;
    /* Added */
}

/* Table must not shrink too small */
table {
    width: 100%;
    min-width: 600px;
    /* Keep a base width so it scrolls */
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    border-collapse: collapse;
    background: #fff;
}


thead {
    background: #787878;
    color: #fff;
    font-size: 16px;
    text-align: left;
}

th {
    padding: 12px 15px;
    font-weight: bold;
    text-transform: uppercase;
}

tbody {
    color: #000000;
    font-size: 14px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f4f4f4;
    text-align: left;
}

tbody tr:nth-child(odd) {
    background-color: rgb(243, 243, 243);
}

tbody tr:nth-child(even) {
    background-color: rgb(231, 231, 231);
}


.btn-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFCA28, #FF5722);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px #ff56226f;
}

.dropdown {
    position: relative;
    width: 250px;
    justify-self: center;
    text-align: left;

}

.dropdown-toggle {
    background-color: #4a90e2;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: #357abd;
}

.dropdown-toggle:after {
    content: "▼";
    font-size: 12px;
    margin-left: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.407);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    z-index: 1000;
    color: #282828;
}

.dropdown-menu.show {
    max-height: 500px;
}

.dropdown-menu a {
    display: block;
    padding: 6px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

@media screen and (max-width: 480px) {
    .dropdown {
        width: 90%;
    }
}




.options {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.option {
    width: 45%;
    min-width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.option:hover {
    transform: scale(1.05);
}

.option a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFCA28, #FF5722);
    text-decoration: none;
    color: white;
}

.option img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.option span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .options {
        flex-direction: column;
        align-items: center;
    }

    .option {
        width: 80%;
    }
}