/* General Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
}

/* Header */
header {
    background: #003366;
    color: white;
    padding: 20px;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: #e6f2ff;
    padding: 40px;
    text-align: center;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.feature {
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    text-align: center;
    font-weight: bold;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

form input, form select, form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 12px;
    background: #003366;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px #00264d;
    transition: all 0.2s ease;
}

form button:hover {
    background: #00509e;
    box-shadow: 0 2px #001a33;
    transform: translateY(1px);
}

/* Login Container */
.login-container {
    width: 300px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #003366;
}

.login-container input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px #00264d;
}

.back-link {
    margin-top: 15px;
}

.back-link a {
    text-decoration: none;
    color: #003366;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar (3D look) */
.sidebar {
    width: 240px;
    background: linear-gradient(to bottom, #003366, #002a5c);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar h2 {
    margin-top: 0;
    text-align: center;
    font-size: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: inset 0 0 0 rgba(255,255,255,0.2);
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}

/* Sidebar bottom icons */
.sidebar-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.icon-link {
    font-size: 20px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.icon-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Section */
.dashboard-main {
    flex: 1;
    padding: 40px;
    background: #f4f4f4;
    overflow-y: auto;
}

/* Register link */
.register-link a {
    text-decoration: none;
    color: #0066cc;
}

/* Action Buttons (Edit/Delete) */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.action-btn.edit {
    background-color: #ffc107;
    color: #000;
    box-shadow: 0 3px #cc9a06;
}

.action-btn.delete {
    background-color: #dc3545;
    color: #fff;
    box-shadow: 0 3px #a71d2a;
}

.action-btn:hover {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #003366;
    cursor: pointer;
}

/* Settings Form */
.settings-form {
    background: white;
    padding: 30px 20px;
    border-radius: 6px;
    max-width: 600px;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}


.feature {
    display: block;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 16px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: all 0.2s ease;
    position: relative;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Button Colors */
.feature-blue    { background-color: #007bff; }
.feature-green   { background-color: #28a745; }
.feature-orange  { background-color: #ff6600; }
.feature-cyan    { background-color: #00bcd4; }
.feature-purple  { background-color: #6f42c1; }
.feature-red     { background-color: #dc3545; }




.class-popup-btn {
  padding: 12px 20px;
  background: #003366;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px #001a33;
  transition: all 0.2s ease;
}

.class-popup-btn:hover {
  background: #00509e;
  transform: translateY(-2px);
}

/* Modal (you may already have this part) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: 8% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #003366;
  cursor: pointer;
}

/* Feature Buttons inside modal */
.feature-grid .feature {
  display: block;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  margin: 10px 0;
  transition: all 0.2s ease;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.btn-schedule   { background: #007bff; }
.btn-roster     { background: #28a745; }
.btn-attendance { background: #17a2b8; }
.btn-groups     { background: #6f42c1; }
.btn-teachers   { background: #fd7e14; }
.btn-announce   { background: #dc3545; }

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}


#page-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

