
/* 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: #ffffffcc;    ;
    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: 200px;
    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: 120px !important;
    max-width: 500px !important;
    background-color: #ffffff !important;
    padding: 30px !important;
    border-radius: 15px;
}

.not-data {
    margin-top: 150px;
}