/*Initial Reset Sheet */ 
/* reset.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  margin: 0;
  display: flex;
  flex-direction: column;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}





/* Full-page layout with flex */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Main content fills space between header and footer */
main.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    width: 100%;
}

/* Table wrapper to avoid touching header */
.main-wrapper {
    width: 100%;
    padding-top: 2rem; /* ✅ Pushes content down from header */
    box-sizing: border-box;
}



/* Navbar Layout */
section {
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;       /* logo on left, nav + menu on right */
    align-items: center;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
}

/* Logo */
.logo {
    font-size: 1.5rem;
}

/* Wrap nav & toggle for alignment */
.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Nav Links - desktop */
.nav-links {
    display: flex;
    gap: 1.5rem;
    
}

/* List and link styling */
.nav-links li {
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-weight: bold;
}

.nav-links a:hover {
    color: #f0a500;
}

/* Hamburger Button - hidden on desktop */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.site-footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

/* ========== Responsive Styles ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;                    /* show on small screens */
    }

    .nav-links {
        display: none;                    /* hide by default */
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;                      /* right-aligned under icon */
        background-color: #333;
        padding: 1rem;
        border-radius: 8px;
        z-index: 999;
        min-width: 150px;
        text-align: right;                /* align text right */
    }

    .nav-links.active {
        display: flex;                    /* show when active */
    }

    .nav-links li {
        margin: 0.5rem 0;
    }
}

/* Center form both horizontally and vertically */
.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    padding: 1rem;
    box-sizing: border-box;
}

/* Responsive form container */
.form-container {
    background-color: #ddd;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: left;
    max-width: 600px;         /* ✅ keeps it tidy */
    width: 100%;
    margin: 0 auto;           /* centers it horizontally */
    box-sizing: border-box;
}


/* Responsive tweaks for smaller screens */
@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
    }
}


.film-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin: 20px auto;
    font-size: 16px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.film-table thead {
    background-color: #333;
    color: #fff;
    text-align: left;
}


.film-table th, .film-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.film-table tr:hover {
    background-color: #f9f9f9;
}

.film-table a {
    color: #007bff;
    text-decoration: none;
}

.film-table a:hover {
    text-decoration: underline;
}

/* Responsive: stack on smaller screens */
/* Responsive: stack on smaller screens */

  .film-table,
  .film-table thead,
  .film-table tbody,
  .film-table th,
  .film-table td,
  .film-table tr {
    display: block;
    width: 100%;
  }

  .film-table thead {
    display: none;
  }

  .film-table tr {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    max-width: 340px; /* ✅ Makes the card narrower */
  }

  .film-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    position: relative;
    font-size: 14px;
    border: none;
    text-align: right;
    background: transparent;
  }

  .film-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: left;
  }
.site-footer {
    display: none;
  }
.form-container {
    max-height: 90vh;
    overflow-y: auto;


/*Pagination*/ 

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.page-btn:hover {
    background-color: #0056b3;
}

/* === Container for landing page buttons === */
.landing-buttons {
    display: flex;                /* Stack or arrange buttons in a column */
    flex-direction: column;       /* Vertical stack on mobile */
    gap: 1rem;                    /* Space between buttons */
    margin-top: 2rem;             /* Space above buttons */
    align-items: center;          /* Center-align all buttons */
}

/* === Individual button styling === */
.landing-btn {
    background-color: blue;    /* Bootstrap-style blue */
    color: white;                 /* White text */
    padding: 12px 20px;           /* Inner space around text */
    text-decoration: none;        /* Remove underline */
    font-size: 16px;              /* Clear, readable font size */
    border-radius: 8px;           /* Rounded corners */
    width: 100%;                  /* Full width on small screens */
    max-width: 250px;             /* Limit width on desktop */
    text-align: center;           /* Center text inside button */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

/* === Hover effect for buttons === */
.landing-btn:hover {
    background-color: #0056b3;    /* Darker blue on hover */
}

/* === Admin Panel Section Blocks === */
.admin-panel .admin-section {
    margin-bottom: 3rem;
}

.admin-panel h3 {
    font-size: 20px;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

/* Form Feedback Messages */
.form-success {
    color: green;
    margin: 1rem 0;
    font-weight: bold;
    text-align: center;
}

.form-error {
    color: red;
    margin: 1rem 0;
    font-weight: bold;
    text-align: center;
}

/* Checkbox in table styling */
.film-table input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Responsive improvements */
@media (max-width: 600px) {
  .admin-panel .admin-section {
    margin-bottom: 2rem;
  }

  .form-submit-btn {
    width: 100%;
  }
}
