:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #ef233c;
    --info: #4895ef;
    --text: #2b2d42;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}


.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background: #f7f6f6;
    color: rgb(0, 0, 0);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) { 
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
    }

    .logo-icon, .logo-icon1 {
        width: 50px; /* Make logos smaller on mobile */
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .subtitle {
        font-size: 12px;
    }
}


.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 250px;
    height: auto;
}

.logo-icon1 {
    width: 100px;
    height: auto;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.app-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.main-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.menu-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.menu-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.menu-card.gpa::after {
    background: linear-gradient(90deg, var(--primary), var(--info));
}

.menu-card.cgpa::after {
    background: linear-gradient(90deg, var(--success), #2ecc71);
}

.menu-card.attendance::after {
    background: linear-gradient(90deg, var(--warning), #e67e22);
}

.menu-card.internals::after {
    background: linear-gradient(90deg, var(--accent), #9b59b6);
}

.menu-card.events::after {
    background: linear-gradient(90deg, var(--primary), var(--info));
}

.menu-card.announcements::after {
    background: linear-gradient(90deg, var(--success), #2ecc71);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.menu-card.gpa .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--info));
}

.menu-card.cgpa .card-icon {
    background: linear-gradient(135deg, var(--success), #2ecc71);
}

.menu-card.attendance .card-icon {
    background: linear-gradient(135deg, var(--warning), #e67e22);
}

.menu-card.internals .card-icon {
    background: linear-gradient(135deg, var(--accent), #9b59b6);
}

.menu-card.events .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--info));
}

.menu-card.announcements .card-icon {
    background: linear-gradient(135deg, var(--success), #2ecc71);
}

.menu-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.menu-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-footer {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Mini Menu */
.mini-menu {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.mini-menu.active {
    display: grid;
}

.mini-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border-top: 4px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mini-card:hover {
    transform: translateY(-3px);
}

.mini-card i {
    font-size: 1.2rem;
}

.mini-card h3 {
    font-size: 0.8rem;
    font-weight: 500;
}

.mini-card.gpa {
    border-top-color: var(--primary);
    color: var(--primary);
}

.mini-card.cgpa {
    border-top-color: var(--success);
    color: var(--success);
}

.mini-card.attendance {
    border-top-color: var(--warning);
    color: var(--warning);
}

.mini-card.internals {
    border-top-color: var(--accent);
    color: var(--accent);
}

.mini-card.events {
    border-top-color: var(--primary);
    color: var(--primary);
}

.mini-card.announcements{
    border-top-color: var(--success);
    color: var(--success);
}


/* Calculator Sections */
.calculator-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculator-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
}

.back-btn {
    background: var(--light);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #e9ecef;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    margin-top: 0.5rem;
}

button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

.subject-container {
    margin-top: 1.5rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.subject-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* Result Styles */
.result-container {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.result-label {
    font-size: 1.1rem;
    color: #666;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Attendance Status */
.attendance-status {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--light);
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-label {
    font-weight: 500;
}

.status-value {
    font-weight: 600;
}

.eligible {
    color: var(--success);
    background-color: rgba(76, 201, 240, 0.1);
}

.condonation {
    color: var(--warning);
    background-color: rgba(248, 150, 30, 0.1);
}

.not-eligible {
    color: var(--danger);
    background-color: rgba(239, 35, 60, 0.1);
}

/* Internals Result */
.internals-result {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-size: 0.85rem;
    margin-top: auto;
    background: var(--card-bg);
    border-top: 1px solid #eee;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .main-menu {
        grid-template-columns: 1fr;
    }
    
    .mini-menu {
        grid-template-columns: 1fr 1fr;
    }
    
    .subject-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .calculator-section {
        padding: 1.5rem;
    }
}










/* Previous CSS remains the same, just add these new styles */

/* Events Section */
#events-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#events-section h2 {
    color: #2c3e50;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    text-align: center;
}

#events-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

.event-category {
    margin-bottom: 2rem;
}

.event-category h3 {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.events-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.events-list li {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 4px solid #3498db;
    position: relative;
    overflow: hidden;
}

.events-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.event-date {
    display: inline-block;
    background: #f1f8fe;
    color: #3498db;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.event-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.event-time {
    display: flex;
    align-items: center;
    color: #34495e;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.event-time i {
    margin-right: 0.5rem;
    color: #3498db;
}

/* Announcements Section */
.announcements-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.announcements-section h2 {
    color: #2c3e50;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    text-align: center;
}

.announcements-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #e74c3c, #f39c12);
}

#announcements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#announcements-list li {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #e74c3c;
}

#announcements-list li:hover {
    transform: translateX(5px);
}

.announcement-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.announcement-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 500;
}

.announcement-content {
    font-size: 0.9rem;
    color: #34495e;
    line-height: 1.6;
}

/* Admin Button (Discreet) */
.admin-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    #events-section, .announcements-section {
        padding: 1.5rem;
    }
    
    .events-list {
        grid-template-columns: 1fr;
    }

    .event-description, .announcement-content{
        font-size: 0.8rem;
    }
    
    .admin-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media(max-width: 1024px){
    #events-section h2, .announcements-section h2 {
        font-size: 1.5rem;
    }
}



/* Scrollbar Styling for Announcements */
.announcements-section::-webkit-scrollbar {
    width: 8px;
}

.announcements-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.announcements-section::-webkit-scrollbar-thumb {
    background: linear-gradient(#3498db, #2c3e50);
    border-radius: 10px;
}

.announcements-section::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    color: #333;
    transition: transform 0.3s ease-in-out;
}

.modal-content h2 {
    margin-top: 0;
    color: #222;
}

/* Inputs */
.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* Buttons */
.modal-content button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #34e89e, #0f3443);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    transform: scale(1.05);
}

/* Close Button */
.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff4757;
}

/* Admin Panel */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1002;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

/* Admin Header */
.admin-header {
    padding: 18px;
    background: linear-gradient(135deg, #1d2671, #c33764);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

/* Tabs */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.admin-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.admin-tab.active {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
    font-weight: bold;
    border-bottom: 4px solid #ff4757;
}

/* Forms */
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.admin-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.admin-submit-btn:hover {
    transform: scale(1.05);
}

/* Events & Announcements */
.events-container {
    margin-top: 20px;
    padding: 10px;
}

.event-category h3 {
    background: #2980b9;
    padding: 14px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-list li {
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Announcements */
.announcement-item {
    padding: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.announcement-item:hover {
    transform: scale(1.03);
}

/* QR Code */
#qr-code-container {
    margin-top: 20px;
    text-align: center;
}

#qr-code-container button {
    margin-top: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#qr-code-container button:hover {
    transform: scale(1.05);
}

/* Loader */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading-spinner i {
    margin-right: 8px;
}

/* Error Messages */
.error {
    color: #d32f2f;
    font-weight: bold;
}

.admin-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #d9534f; /* Red color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px; /* Make it smaller */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-btn i {
    margin: 0; /* Center the icon */
}

/* Hover effect */
.admin-btn:hover {
    background-color: #c9302c;
}
