:root {
    --primary-purple: #8B5CF6;
    --dark-purple: #6D28D9;
}

body {
    background-color: var(--primary-purple);
    font-family: 'Poppins', sans-serif;
    color: white;
    min-height: 100vh;
    margin: 0;
}

.main-center-wrapper {
    min-height: unset;
    width: unset;
    display: unset;
    flex-direction: unset;
    justify-content: unset;
    align-items: unset;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
}

/* Logo Container Styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-cat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.logo-cat:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hero-section {
    padding: 4rem 0;
}

.hero-image {
    max-width: 400px;
    margin: 2rem auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.learning-card {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.btn-light {
    background: white;
    color: var(--dark-purple);
    border-radius: 25px;
    padding: 0.8rem 2.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-control::placeholder, .form-label {
    color: rgba(255, 255, 255, 0.7);
}

option {
    background: var(--dark-purple);
    color: white;
}

.welcome-section {
    margin-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-header h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-date {
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-time {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.progress-section .learning-card {
    margin-top: 2rem;
}

.progress-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.progress {
    height: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    background: white;
}

/* General card container style */
.card-container {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: none;
  }
  
/* Remove flip-card and card-specific styles */
.flip-card, .flip-card-inner, .flip-card-front, .flip-card-back, .card-actions-inside {
    display: none !important;
}

/* Heading and subheading adjustments */
h1, .main-title {
    margin-top: 18px !important;
    margin-bottom: 8px !important;
}

.subheading, .subtitle, .main-description {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

/* Card+buttons wrapper for vertical alignment */
.card-anki-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-top: -5vh;
    width: 100%;
    max-width: 700px;
    min-height: 60vh;
    max-height: 80vh;
}

.vocab-content {
    width: auto;
    min-width: 400px;
    max-width: 90vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 32px 28px 32px;
    border: 3px solid #fff;
    border-radius: 32px;
    background: rgba(30, 30, 40, 0.85);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    margin: 0;
    position: relative;
    flex: 1;
    max-height: 60vh;
    overflow-y: auto;
}

.vocab-term {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-align: center;
    line-height: 1.2;
}

.vocab-reading {
    font-size: 2.5rem;
    color: #a5b4fc;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
}

.vocab-meaning {
    font-size: 2.1rem;
    color: #f3f4f6;
    margin-bottom: 0;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: filter 0.3s ease;
}

.vocab-meaning.blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.meaning-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.reveal-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.reveal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.reveal-button:active {
    transform: translateY(0);
}

.reveal-button.revealed {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.audio-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.audio-btn:active {
    transform: translateY(0);
}

.answer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 1.5em;
    margin-bottom: 0;
    width: 100%;
    flex-shrink: 0;
}

.answer-buttons button {
    min-width: 220px;
    padding: 36px 0;
    font-size: 2.3rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
}

#good-btn {
    background: #22c55e;
    color: #fff;
}
#good-btn:hover {
    background: #16a34a;
    color: #fff;
    transform: translateY(-2px) scale(1.08);
}

#again-btn {
    background: #ef4444;
    color: #fff;
}
#again-btn:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-2px) scale(1.08);
}

/* Daily Stats Summary Styling */
.study-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.summary-item .label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.summary-item .value {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

/* Mini SRS Status Indicator using Bootstrap positioning */
.mini-srs-indicator {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    gap: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-mini .stat-icon {
    font-size: 1.2rem;
    display: block;
}

.stat-mini .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-mini .stat-number {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mini-srs-indicator {
        right: 10px;
        padding: 10px 12px;
        gap: 15px;
    }
    
    .stat-mini .stat-icon {
        font-size: 1rem;
    }
    
    .stat-mini .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-mini .stat-number {
        font-size: 1rem;
    }
}
