/* assets/css/glassmorphism.css - Updated White & KMITL Orange Theme */
:root {
    --primary-color: #F2531C; /* KMITL Orange */
    --primary-hover: #d44818;
    --secondary-color: #EF3961; /* SIET Red */
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --danger: #ff4757;
    --success: #2ed573;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Kanit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Kanit', sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Clean Cards (formerly Glass) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.glass-navbar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-profile {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-left: 1.2rem;
}

/* Layout */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.2rem;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #fdfdfd;
    border: 2px solid #edeff2;
    border-radius: 12px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(242, 83, 28, 0.1);
}

/* Input Group for Auto-Email */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.input-group-text {
    background: #f1f3f5;
    border: 2px solid #edeff2;
    border-left: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 83, 28, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 83, 28, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.contact-card:hover { transform: translateY(-5px); }

.contact-avatar {
    width: 100px;
    height: 100px;
    border-radius: 30px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-indicator {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}
.status-available { background: var(--success); }
.status-busy { background: var(--primary-color); }
.status-offline { background: var(--text-muted); }

/* Feed & Images */
.feed-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.feed-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.feed-body { padding: 1.5rem; }

/* Dashboard & Tables */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.glass-table th {
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.glass-table tr td {
    background: #fff;
    padding: 1.2rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.glass-table tr td:first-child { border-left: 1px solid var(--border-color); border-radius: 12px 0 0 12px; }
.glass-table tr td:last-child { border-right: 1px solid var(--border-color); border-radius: 0 12px 12px 0; }

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Toast Notification Container */
.toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
}

.toast {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; gap: 12px;
}

.toast.show { transform: translateX(0); }

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1060;
    transition: transform 0.3s ease;
}

.mobile-toggle:active { transform: scale(0.9); }

/* Responsive */
@media (max-width: 950px) {
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        z-index: 1055;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-profile {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
        padding-left: 0;
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a { 
        font-size: 1.1rem; 
        padding: 0.8rem 0; 
        width: 100%; 
        text-align: center; 
    }
    
    .main-content { margin: 1rem auto; padding: 0 1rem; }
}
