/* Flash Screen Styles */
.flash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 2.5s forwards;
}

.flash-content {
    text-align: center;
    color: white;
    animation: slideUp 1s ease-out;
}

.flash-title {
    margin: 20px 0;
    font-size: 3em;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.loading-spinner {
    margin-top: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Page Container */
.page-container {
    display: none;
    min-height: 100vh;
}

.page-container.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.login-panel .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border: none;
}

.login-panel .panel-body {
    padding: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group-addon {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.form-control {
    border-radius: 0 5px 5px 0;
    border-left: none;
    padding: 12px;
}

.btn-login {
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* App-Style Home Page */
.home-page {
    background: #f8f9fa;
    padding: 0;
}

/* App Header */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 0 0 25px 25px;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.user-info h4 {
    margin: 0;
    font-weight: 600;
}

.user-info p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-notification, .btn-menu {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.btn-notification:hover, .btn-menu:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 30px;
    gap: 15px;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* App Grid */
.app-grid {
    padding: 0 20px;
    margin-bottom: 30px;
}

.section-title {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.app-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.app-item:nth-child(1) { animation-delay: 0.1s; }
.app-item:nth-child(2) { animation-delay: 0.2s; }
.app-item:nth-child(3) { animation-delay: 0.3s; }
.app-item:nth-child(4) { animation-delay: 0.4s; }
.app-item:nth-child(5) { animation-delay: 0.5s; }
.app-item:nth-child(6) { animation-delay: 0.6s; }

.app-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.app-icon.tuition { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.app-icon.transactions { background: linear-gradient(135deg, #3498db, #2980b9); }
.app-icon.results { background: linear-gradient(135deg, #f39c12, #e67e22); }
.app-icon.schedule { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.app-icon.library { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.app-icon.support { background: linear-gradient(135deg, #1abc9c, #16a085); }

.app-label {
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Recent Activity */
.recent-activity {
    padding: 0 20px;
    margin-bottom: 30px;
}

.activity-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.6s ease-out;
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.activity-content h5 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.activity-content small {
    color: #999;
    font-size: 12px;
}

/* Sub Pages */
.sub-page {
    background: #f8f9fa;
}

.sub-page .panel {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    animation: slideUp 0.6s ease-out;
}

.sub-page .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #333;
}

.table td {
    vertical-align: middle;
}

/* Navbar Styles */
.navbar-default {
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #333 !important;
}

.navbar-nav > li > a {
    color: #333 !important;
    transition: color 0.3s ease;
}

.navbar-nav > li > a:hover {
    color: #667eea !important;
}

.main-content {
    padding-top: 80px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .flash-title {
        font-size: 2em;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .app-header {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .app-grid, .recent-activity {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-success { color: #2ecc71; }
.text-warning { color: #f39c12; }
.text-info { color: #3498db; }

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* PWA Install Popup */
.pwa-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pwa-popup.show {
    opacity: 1;
    visibility: visible;
}

.pwa-content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    max-width: 350px;
    width: 90%;
    animation: slideUp 0.4s ease-out;
}

.pwa-icon {
    color: #667eea;
    margin-bottom: 20px;
}

.pwa-content h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.pwa-content p {
    color: #666;
    margin-bottom: 25px;
}

.pwa-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.pwa-buttons .btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pwa-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.pwa-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.pwa-buttons .btn-default {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    color: #666;
}

.pwa-buttons .btn-default:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
}
.label {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
}