﻿html, body {
    height: 100%; /* Ensure the html and body cover the full height */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

body {
    display: flex;
    flex-direction: column;
    font-family: roboto-regular, sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: poppins-regular, sans-serif;
}

table {
    width: 100%; /* Optional for full-width table */
    font-family: roboto-regular, sans-serif;
}

.navbar {
    background-color: #343a40; /* Dark navbar */
    width: 100%;
    border-bottom: 2px solid #0A66C2;
}

.navbar-brand {
    color: #ffffff;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    color: #fff !important; /* White text */
}

    .navbar-nav .nav-link:hover {
        color: #004242 !important;
    }

.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color: #004242 !important;
}

.navbar-nav > li > a:hover, .navbar-nav > li > a:focus {
    background-color: #dce6f7;
    color: #FFC0CB;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1); /* Light border for the toggler */
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1); /* Make the toggler icon white */
}

.container-fluid {
    flex: 1; /* Ensure container takes up remaining space */
}

.footer {
    background-color: #343a40; /* Footer matches navbar */
    color: #adb5bd;
    border-top: 2px solid #0A66C2;
}

    .footer p, .footer a {
        color: #adb5bd;
    }

        .footer a:hover {
            color: #0A66C2;
        }
/* Content */
.content {
    padding: 20px;
    margin-top: 56px; /* Navbar height */
    flex: 1;
    transition: all 0.3s ease;
}

    .content.collapsed {
        margin-left: 0;
    }

.hero-section {
    background-image: url('/image/bgtech.jpg'); /* Ensure this path is correct */
    background-size: cover; /* Ensure the image covers the whole section */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Prevent repeating the image */
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    position: relative; /* For absolute positioning of content */
    overflow: hidden; /* Hide any overflow */
    margin: 0; /* Ensure no margin affects the layout */
    padding: 0; /* Ensure no padding affects the layout */
}

.hero-section-login {
    background-image: url('/image/bgl.jpg'); /* Ensure this path is correct */
    background-size: cover; /* Ensure the image covers the whole section */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Prevent repeating the image */
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    position: relative; /* For absolute positioning of content */
    overflow: hidden; /* Hide any overflow */
    margin: 0; /* Ensure no margin affects the layout */
    padding: 0; /* Ensure no padding affects the layout */
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1; /* Ensure content is above the background */
}

    .overlay-content h2,
    .overlay-content p {
        margin-bottom: 20px;
        color: #1F609D
    }

    .overlay-content .btn {
        margin-top: 10px;
    }

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2); /* Slightly transparent background */
}

.card-header {
    background: #007bff;
    color: white;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-size: 24px;
    padding: 15px;
}

/* Text alignment */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* Buttons */
.btn-primary {
    background-color: #0A66C2;
    border-color: #0A66C2;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004b9b;
    color: #FFEB3B !important;
}

.section-container {
    border: 2px solid #007bff;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    position: relative;
}

.section-title {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #007bff;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.form-label {
    font-weight: 600;
}

.card-header {
    background: linear-gradient(90deg, #0056b3, #007bff);
}

.btn {
    font-size: 1rem;
}

.input-group .form-control {
    flex: 1;
}

.add-remove-buttons .btn {
    min-width: 40px;
}

td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media print {
    .btn, .alert, .navbar, footer {
        display: none;
    }

    table {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .table {
        max-height: calc(100vh - 100px); /* Smaller height for mobile */
    }
}

@media (min-width: 769px) {
    .table {
        max-height: calc(100vh - 200px); /* Larger height for desktop */
    }
}


@font-face {
    font-family: 'roboto-regular';
    src: url('../fonts/roboto-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'poppins-regular';
    src: url('../fonts/poppins-regular.ttf') format('truetype');
}
