/*
 * Copyright (c) 2026 Dr. Red Oy. All rights reserved.
 * CONFIDENTIAL AND PROPRIETARY
 *
 * This file is part of Gnossio - LLM-based Automated Grading System.
 * Unauthorized copying, distribution, or use of this file, via any medium,
 * is strictly prohibited without prior written consent from Dr. Red Oy.
 */

/**
 * Gnossio Core CSS
 * Shared styles for both teachers and students
 */

/* ========================================
   CSS Custom Properties (Brand Colors)
   ======================================== */
:root {
    --brand-red: #b03a2e;
    --brand-red-dark: #8e2f25;
    --brand-red-light: #c85a4f;
    --brand-gray: #6b7280;
    --brand-gray-light: #f3f4f6;
}

/* ========================================
   Brand Utility Classes
   ======================================== */
.brand-color { color: var(--brand-red); }
.brand-bg { background-color: var(--brand-red); }
.brand-border { border-color: var(--brand-red); }
.brand-hover:hover {
    background-color: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
}

/* ========================================
   Button Styles
   ======================================== */
.btn-brand {
    background-color: var(--brand-red);
    color: white;
    transition: all 0.2s ease;
}

.btn-brand:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(176, 58, 46, 0.3);
}

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

/* ========================================
   Link Styles
   ======================================== */
.link-brand {
    color: var(--brand-red);
    transition: color 0.2s ease;
}

.link-brand:hover {
    color: var(--brand-red-dark);
    text-decoration: underline;
}

/* ========================================
   Info Field Labels
   ======================================== */
.field-label {
    font-weight: 600;
}

/* ========================================
   Card Hover Effects
   ======================================== */
.card-hover {
    transition: all 0.3s ease;
}

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

/* ========================================
   Navigation Styles
   ======================================== */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-red);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Message Alerts
   ======================================== */
.message-alert {
    transition: opacity 0.5s ease;
}

/* ========================================
   Toast Notifications
   ======================================== */
#gnossio-toast {
    transition: opacity 0.5s ease;
}

/* ========================================
   Landing Page Styles
   ======================================== */
.gradient-bg {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #fef5f5 100%);
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.logo-glow {
    filter: drop-shadow(0 0 20px rgba(176, 58, 46, 0.1));
}
