/* Design Refresh - Lively Colors and White Theme */

:root {
    --primary: #6366f1; /* Changed from dark blue to purple */
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #ec4899; /* Pink accent */
    --success: #10b981; /* Green */
    --warning: #f59e0b; /* Orange */
    --info: #06b6d4; /* Cyan */
    --purple: #8b5cf6;
    --pink: #ec4899;
    --teal: #14b8a6;
    --coral: #fb7185;
}

/* Enhanced Footer Design */
.footer {
    background: #ffffff;
    border-top: 2px solid #f0f0f0;
    padding: 3rem 0;
    position: relative;
}

.footer::before {
    display: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 45px;
}

.footer-brand p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #374151;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* Hero Section Subtle LMS Animation */
.hero-visual {
    position: relative;
    padding: 2rem;
}

.lms-dashboard-animation {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.dashboard-title {
    font-size: 0.875rem;
    color: #6b7280;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.dashboard-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1rem;
    border-radius: 8px;
    animation: cardFloat 3s ease infinite;
}

.dashboard-card:nth-child(1) {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    animation-delay: 0s;
}

.dashboard-card:nth-child(2) {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    animation-delay: 0.5s;
}

.dashboard-card:nth-child(3) {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    animation-delay: 1s;
}

.dashboard-card:nth-child(4) {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    animation-delay: 1.5s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Intelligent Features - White Theme with Colors */
.feature-card {
    background: white;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Analytics Window - White Theme */
.analytics-window {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.analytics-window .window-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.window-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
}

.window-dot.red { background: #ef4444; }

.window-text {
    font-size: 0.625rem;
    color: #6b7280;
    font-weight: 600;
}

.analytics-window .window-content {
    background: white;
    padding: 0.75rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fafafa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateX(3px);
}

.metric-icon {
    font-size: 1rem;
}

.metric-label {
    flex: 1;
    font-size: 0.625rem;
    color: #6b7280;
}

.metric-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* Grading Window - White Theme */
.grading-window {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.grading-window .window-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.grading-progress {
    margin: 1rem 0;
}

.progress-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink) 0%, var(--purple) 100%);
    animation: progressAnimation 2s ease infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
}

.grading-complete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 2s;
}

.check-icon {
    color: var(--success);
    font-size: 1rem;
}

/* Groups Window - White Theme */
.groups-window {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.groups-window .window-header {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.window-dot.green { background: var(--success); }

.group-formation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.student-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    animation: popIn 0.5s ease;
}

.student-avatar.s1 {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    animation-delay: 0.2s;
}

.student-avatar.s2 {
    background: linear-gradient(135deg, var(--info), var(--teal));
    animation-delay: 0.4s;
}

.student-avatar.s3 {
    background: linear-gradient(135deg, var(--warning), var(--coral));
    animation-delay: 0.6s;
}

.student-avatar.s4 {
    background: linear-gradient(135deg, var(--success), var(--teal));
    animation-delay: 0.8s;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Content Window - White Theme */
.content-window {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.content-window .window-header {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.gen-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.625rem;
    background: white;
}

.generating {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
    justify-content: center;
}

.gen-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s ease infinite;
}

.gen-dot:nth-child(2) { animation-delay: 0.2s; }
.gen-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Adaptive Window - White Theme */
.adaptive-window {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.adaptive-window .window-header {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.learning-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.path-node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
}

.path-node.completed {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.path-node.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    animation: pulse 2s ease infinite;
}

.path-node.future {
    background: white;
    border-style: dashed;
}

.path-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
}

.path-line.branching {
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

/* Support Window - White Theme */
.support-window {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.support-window .window-header {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.support-chat {
    padding: 0.75rem;
}

.chat-message {
    background: #f3f4f6;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    margin-bottom: 0.5rem;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    animation: typing 1.4s ease infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: scale(0.8); opacity: 0.5; }
    30% { transform: scale(1); opacity: 1; }
}

.chat-response {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    animation: slideIn 0.5s ease;
}

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

/* Update color scheme for cards */
.security-card-animated:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.advantage-card:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-5px);
}

.resource-card-animated:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.faq-item:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

/* Button Updates */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}