
/* Main container with background image */
.main {
    position: fixed; /* Fixes the element to the viewport */
    top: 0; /* Aligns to the top of the viewport */
    left: 0; /* Aligns to the left of the viewport */
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    background-color: #f0f2f5;
    background-image: url("uploads/istockphoto-1419220316-1024x1024.jpg");
    background-size: cover; /* Ensures the image covers the whole area */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent image tiling */
    z-index: -1; /* Ensures it does not overlap other elements */
    overflow: hidden; /* Prevents overflow */
    
}

/* Dark overlay using ::after pseudo-element */
.main::after {
    content: ""; /* Required for ::after to work */
    position: absolute; /* Positioned relative to .main */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Black color with 50% opacity */
    z-index: 1; /* Ensure overlay is above background image but below other content */
}

/* Optional: Add a class for better container spacing if needed */
.container {
    position: relative; /* Ensures container content is above overlay */
    padding: 20px; /* Adds padding to the container */
    z-index: 2; /* Ensures container content is above the overlay */
}

/* Grid layout for the info boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px;
    max-width: 1200px; /* Center grid horizontally */
    margin: 0 auto;
    position: relative;
    top: 200px;
}

/* Styling for individual info boxes */
.info-box {
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    border-radius: 12px; /* Rounded corners */
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Enhanced shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box h3 {
    margin: 0;
    font-size: 1.5rem; /* Larger font size for headings */
    color: #333;
}

.info-box p {
    font-size: 2.5rem; /* Larger font size for numbers */
    font-weight: 700; /* Bold numbers */
    margin: 10px 0 0;
    color: #007bff; /* Use a contrasting color for numbers */
}

.info-box:hover {
    transform: translateY(-10px); /* Lift the box on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Optional: Responsive design for smaller screens */
@media (max-width: 768px) {
    .info-boxes {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid columns */
    }
}


.modal-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.modal-body img {
    max-width: 80%; /* Increase size of images to 80% */
    margin-bottom: 10px;
    border-radius: 5px;
    transition: transform 0.2s;
}
.modal-body img:hover {
    transform: scale(1.05);
}

/* CURD css */

.curd_container {
    width: 600px;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 25%;
    margin-top: 150px;
    margin-bottom: 70px !important;
}
h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    color: #333;
}
.form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}
.form-group .file-label {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-group .file-label:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}
.form-group input[type="text"] {
    height: 30px;;
}
.form-group input[type="file"] {
    display: none;
}
.form-group button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.form-group button:hover {
    background-color: #218838;
    transform: scale(1.02);
}

.preview_image {
    max-width: 100% !important;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}



/* Login  */

  /* Container for Login Box */
  .login-wrap {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #fff;    ;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
  }
  
  /* Inner Form Styling */
  .login-html {
    text-align: center;
  }
  
  /* Header Styling */
  .box h1 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
  }
  
  /* Error Message Styling */
  .box p {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  /* Input Field Styling */
  .box input[type="text"],
  .box input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    background: #f2f2f2;
    border: 2px solid transparent;
    border-bottom: 2px solid #ddd;
    outline: none;
    color: #333;
    font-size: 16px;
    border-radius: 8px;
    transition: border-color 0.3s ease;
  }
  
  /* Input Focus Effect */
  .box input[type="text"]:focus,
  .box input[type="password"]:focus {
    border-color: #3498db;
  }
  
  /* Submit Button Styling */
  .box input[type="submit"] {
    width: 100%;
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  /* Submit Button Hover Effect */
  .box input[type="submit"]:hover {
    background: #2980b9;
  }
  
  /* Responsive Design for Smaller Screens */
  @media (max-width: 600px) {
    .login-wrap {
      padding: 20px;
    }
  }

  .show-error {
    opacity: 1 !important; 
    transform: translateY(0px) !important;
    transition-delay: 1ms !important;
  }
  

/* Users */

.main-table {
    margin-top: 70px;
    padding: 40px;
}


.control {
    text-align: center;
}

/* Log */

.table-log {
    position: relative;
    padding: 180px 20px;
}


/******************************** */

.req-field {
    color: red !important;
}

/* <!-- CSS for spinner --> */
    .spinner {
        border: 4px solid rgba(0, 0, 0, 0.1); /* Light grey */
        border-left-color: #000; /* Black */
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite; /* Spin animation */
        margin: auto;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }

    /* Optional: center the loading message */
    #loadingMessage {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Hide the loading spinner by default */
    #loadingMessage p {
        margin-top: 10px;
        font-size: 16px;
        color: #333;
    }

/* Footer Styling */
.footer {
    background-color: #e1e1e1;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: fixed !important;
    bottom: 0;
    left: 0;
    z-index: 1000; /* للتأكد من ظهوره فوق المحتويات الأخرى */
}
.footer p {
    margin: 0;
    font-size: 16px;
    color: #000;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* ================================================================= */

.info-vec {
    position: relative;
    top: -100px;
}

.dt-scroll-body {
    position: relative !important;
    overflow: auto !important;
    width: 100% !important;
    max-height: 500px !important;
    height: 600px !important;
}

/* Profile */

.profile {
    margin-top: 150px !important;
    margin-bottom: 100px !important;
    max-width: 500px !important;
    background-color: #ffffff !important;
    padding: 30px !important;
    border-radius: 15px;
    margin: 150px auto 100px; /* Center and vertical spacing */
    max-width: 500px; /* Limit width */
    background-color: #ffffff; /* Clean white background */
    padding: 40px; /* Increased padding for comfort */
    border-radius: 15px; /* Soft rounded corners */
    box-shadow: 0 4px 20px #0000001a; /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.profile:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.not-data {
    margin-top: 150px; /* Space above no data message */
    text-align: center; /* Centered text */
    font-size: 1.5rem; /* Clear font size */
    color: #7f8c8d; /* Muted color for less emphasis */
}

.title, .user-title {
    font-size: 2.5rem; /* Large font size for prominence */
    font-weight: 600; /* Slightly less bold for better readability */
    color: #34495e; /* Dark, appealing color */
    margin-bottom: 40px; /* Space below */
    text-align: center; /* Center titles */
    line-height: 1.2; /* Improved line height */
}

@media (max-width: 600px) {
    .profile {
        padding: 25px; /* Adjusted padding for smaller screens */
    }

    .title, .user-title {
        font-size: 2rem; /* Slightly smaller font size */
        margin-bottom: 30px; /* Reduced space below */
    }
}

.title {
    position: relative;
    top: 112px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 40px;
    text-align: center;
}
.user-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 40px;
    text-align: center;
}

/* Users */

.table-user th, .table-user td {
    vertical-align: middle; /* Center align text in table cells */
}

.trow:hover {
    background-color: #f8f9fa; /* Light gray on hover */
}

.control a {
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.control a:hover {
    background-color: #007bff; /* Bootstrap primary color on hover */
    color: white; /* Change text color on hover */
}

/* Logs */

.table-data .table {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow to the table */
}

.table-data th, .table-data td {
    text-align: center; /* Center align text in table cells */
    vertical-align: middle; /* Center align vertically */
}

.table-data tbody tr:hover {
    background-color: #f1f1f1; /* Light gray on hover */
}

/* Arms */

.table-data .table {
    border-radius: 0.5rem; /* Rounded corners for the table */
    overflow: hidden; /* Ensures rounded corners work */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.table-data th {
    background-color: #343a40; /* Darker header background */
    color: #000; /* White text for contrast */
}

.table-data th, .table-data td {
    vertical-align: middle; /* Center content vertically */
}

.table-data tbody tr:hover {
    background-color: #f8f9fa; /* Light gray on hover */
}

.control .btn {
    min-width: 150px; /* Consistent button width */
}



.table {
    background-color: #fff; /* White background for the table */
    border-collapse: collapse; /* Remove space between borders */
}

.table th, .table td {
    padding: 12px; /* Add padding for better spacing */
    border: 1px solid #dee2e6; /* Border for table cells */
    text-align: center; /* Center align text */
}

.table th {
    background-color: #343a40; /* Dark background for headers */
    color: #000; /* White text for headers */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2; /* Light gray background for odd rows */
}

.table-striped tbody tr:hover {
    background-color: #d6e9f9; /* Light blue hover effect */
}


.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #28a745; /* Green color for the scrollbar thumb */
    border-radius: 6px; /* Rounded corners for the scrollbar thumb */
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #218838; /* Darker green on hover */
}

/* For Firefox */
.table-responsive {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #28a745 #f1f1f1; /* Green thumb and light gray track */
}

/* report */

.report {
    margin-top: 200px !important;
}
.print-report {
    margin-bottom: 100px !important;
}

