/* ImpactMCI Student Portal Styles */
/* Mobile-first design with ImpactMCI branding */

:root {
    --primary-color: #d32f2f;
    --primary-dark: #9a0007;
    --primary-light: #ff6659;
    --secondary-color: #424242;
    --background: #f5f5f5;
    --surface: #ffffff;
    --error: #d32f2f;
    --success: #388e3c;
    --warning: #f57c00;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Login Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.login-container {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo h2 {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:active:not(:disabled) {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-large {
    padding: 1.25rem;
    font-size: 1.125rem;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.btn-tool {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    background-color: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.error-message {
    color: var(--error);
    background-color: #ffebee;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

/* Student Portal */
.student-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--surface);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.mobile-header h2 {
    color: var(--text-primary);
    font-size: 1.125rem;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-content {
    flex: 1;
    padding: 1rem;
}

.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-section h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Sessions List */
.sessions-list h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.session-card {
    background-color: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.session-card:active {
    transform: scale(0.98);
}

.session-card h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.session-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.session-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-setup {
    background-color: #fff3e0;
    color: var(--warning);
}

.status-active {
    background-color: #e8f5e9;
    color: var(--success);
}

.status-completed {
    background-color: var(--background);
    color: var(--text-secondary);
}

/* Session View */
.session-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
}

.station-view,
.assignment-view {
    padding: 1rem 0;
}

.station-view h3,
.assignment-view h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.station-view p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.weather-card {
    background-color: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.weather-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.weather-card p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Assignment Card */
.assignment-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.assignment-card h3 {
    color: white;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.assignment-card .unit {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.assignment-card .role {
    font-size: 1.25rem;
    font-weight: 500;
}

.status-message {
    background-color: #e8f5e9;
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Tools Section */
.tools-section {
    margin-top: 2rem;
}

.tools-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive - Tablet and Desktop */
@media (min-width: 768px) {
    .mobile-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }
    
    .tool-buttons {
        max-width: 400px;
    }
}
