/* Optimized CSS for SKU */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    position: relative; /* Add this */
    z-index: 1000; /* Add this to ensure it's on top */
}

.header-container {
    width: 80%;
    max-width: 1200px;   
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-name {
    display: flex;
    align-items: center;
}

.header-name h1 {
    font-size: 2rem;
    margin: 0;
}

.header-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    position: relative;
}

.dropbtn::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropbtn:hover {
    background-color: #34495e;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    min-height: calc(100vh - 80px);
    padding: 2rem 20px;
}

.home-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-container h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.login-container p {
    text-align: center;
    margin-top: 1rem;
}

.login-container p a {
    color: #3498db;
    text-decoration: none;
}

.messages {
    max-width: 800px;
    margin: 1rem auto;
    padding: 1rem;
}

.messages p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

.messages .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.details-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.details-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.upload-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.upload-container p {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

/* small global overrides to avoid oversized images and force responsive media */
img, .card-img, .student-avatar {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
main img {
  max-height: 280px; /* adjust as needed */
}

/* fallback: show desktop nav and hide mobile toggle on wide screens */
@media (min-width: 768px) {
  #desktop-nav { display: flex !important; }
  #mobile-toggle { display: none !important; }
  #mobile-menu { display: none !important; }
}