/* Dashboard Page Specific Styles - Legacy Elements */

/* Dashboard Content Wrapper - Use flex to ensure only visible content shows */
#dashboardContent {
    position: relative;
    min-height: 100vh;
}

/* Home and Dynamic content containers */
#dashboardHomeContent {
    width: 100%;
}

#dashboardDynamicContent {
    width: 100%;
}

/* Dashboard Main Content Adjustments */
.dashboard-main-content {
    padding: 0;
    background: #f8f9fc;
}

/* Test Options Section */
.test-options-section {
    background-color: #ffffff;
}

.section-title {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
}

/* Extra card back content */
.extra-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.extra-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.extra-features-list li {
    padding: 8px 0;
    font-size: 1.05rem;
    color: white;
}

/* Simple Card (for Extra cards - no flip) */
.simple-card {
    background: linear-gradient(135deg, #ffffff 0%, #ecf4ff 100%);
    border: 2px solid rgba(40, 120, 235, 0.2);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(40, 120, 235, 0.15);
    height: 400px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.simple-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(40, 120, 235, 0.25);
}

.simple-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.simple-card .card-title {
    font-size: 1.5em;
    font-weight: 700;
}

.simple-card .card-text {
    text-align: center;
}

/* Locked simple card */
.subject-card--locked .simple-card {
    border-color: rgba(241, 77, 93, 0.45);
    border-style: solid;
    background: linear-gradient(135deg, rgba(241, 77, 93, 0.06) 0%, #ffffff 100%);
}

.test-card {
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

/* Subject Cards (Exam/Extra) */
.subject-card {
    position: relative;
}

/* Note: Flip card styles replaced the old .test-card styles */

/* Locked subject card (shows "Αγορά" button) */
.subject-card--locked::after {
    content: "🔒";
    /* Lock icon (Font Awesome) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    /* background: rgba(241, 77, 93, 0.12); */
    /* color: #F14D5D; */
    border-radius: 999px;
    font-size: 2rem;
    z-index: 10;
}

.subject-card--locked .flip-card-front {
    border-color: rgba(241, 77, 93, 0.45);
    border-style: solid;
    background: linear-gradient(135deg, rgba(241, 77, 93, 0.06) 0%, #ffffff 100%);
}

.subject-card--locked .flip-card-text {
    color: #6c757d !important;
}

.subject-card--locked .btn {
    background-color: white !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    box-shadow: 0 10px 22px rgba(40, 120, 235, 0.18);
    transition: all 0.3s ease;
}

.subject-card--locked .btn:hover {
    /* background-color: var(--primary) !important; */
    /* color: white !important; */
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(40, 120, 235, 0.25);
}

.test-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.test-card .card-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.test-card:hover .card-body {
    background: linear-gradient(135deg, #ecf4ff 0%, #ffffff 100%);
}

.test-icon {
    transition: transform 0.3s ease;
}

.test-card:hover .test-icon {
    transform: rotate(10deg) scale(1.1);
}

.test-card .card-title {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.test-card .btn {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.test-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Exam Cards - Special Styling */
.exam-card .card-body {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.exam-card:hover .card-body {
    background: linear-gradient(135deg, #ffe5e5 0%, #fff5f5 100%);
}

/* Extra Practice Cards - Special Styling */
.extra-card .card-body {
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.extra-card:hover .card-body {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-15px);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

@media (max-width: 992px) {

    /* 5px padding for all containers */
    .container-fluid .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .welcome-section .container,
    .test-options-section .container,
    .pricing-packages-section .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Reduce avatar size on mobile */
    .user-avatar,
    .student-avatar {
        width: 60px;
        height: 60px;
    }

    .student-avatar i {
        font-size: 1.6rem;
    }

    /* Reduce welcome title */
    .welcome-title {
        font-size: 1.4rem;
    }

    /* Reduce section titles */
    .section-title {
        font-size: 2rem;
    }

    /* Note: Flip card heights are handled by flip-card.css component file */

    /* Simple cards */
    .simple-card {
        height: 350px;
    }

    .simple-card .card-title {
        font-size: 1.3em;
    }

    /* Pricing cards */
    .pricing-header h3 {
        font-size: 1.5rem;
    }

    .pricing-price h2 {
        font-size: 2.5rem;
    }

    .user-info-nav {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 15px;
    }

    .user-name-display {
        margin-bottom: 10px;
        font-size: 1rem;
    }

    #logoutBtn {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Further reduce padding */
    .container-fluid .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Row and column adjustments */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Welcome section layout */
    .welcome-greeting-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Avatar size */
    .user-avatar,
    .student-avatar {
        width: 50px;
        height: 50px;
    }

    .student-avatar i {
        font-size: 1.5rem;
    }

    /* Typography */
    .welcome-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Note: Flip card styles are handled by flip-card.css component file */

    /* Simple cards */
    .simple-card {
        height: 320px;
    }

    .simple-card .card-title {
        font-size: 1.15em;
    }

    .simple-card-body {
        padding: 1.2rem;
    }

    /* Test card titles */
    .test-card .card-title {
        font-size: 1.15rem;
    }

    /* Card padding adjustments */
    .hover-lift .card-body {
        padding: 2rem !important;
    }

    /* Dashboard icons on mobile */
    .dashboard-main-icon {
        width: 100px;
        height: 100px;
    }

    /* Modern buttons on mobile */
    .modern-btn {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem !important;
    }

    .hover-lift .card-body i.fa-clock,
    .hover-lift .card-body i.fa-book-reader {
        font-size: 3rem !important;
    }

    /* Icon sizes in simulation panel */
    .test-icon img {
        width: 60px !important;
    }

    .test-icon-dual img {
        width: 45px !important;
    }

    /* Category and practice buttons */
    .category-filter-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .subject-practice-btn {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    /* Card header adjustments */
    .card-header h4 {
        font-size: 1.1rem;
    }

    .card-header .btn-light {
        padding: 3px 10px;
        font-size: 0.85rem;
    }

    /* Pricing adjustments */
    .pricing-header {
        padding: 30px 20px;
    }

    .pricing-header h3 {
        font-size: 1.3rem;
    }

    .pricing-body {
        padding: 20px;
    }

    .pricing-price h2 {
        font-size: 2rem;
    }

    .pricing-features li {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    /* Buttons */
    .test-card .btn,
    .pricing-card .btn {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {

    /* Minimal padding everywhere */
    .container-fluid .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .welcome-section,
    .test-options-section,
    .pricing-packages-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    /* Row spacing */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Welcome section */
    .welcome-greeting-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    /* Smallest avatar */
    .user-avatar,
    .student-avatar {
        width: 40px;
        height: 40px;
    }

    .student-avatar i {
        font-size: 1rem;
    }

    .welcome-title {
        font-size: 1.1rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.4rem;
    }

    /* Subsection headings */
    h3 {
        font-size: 1.1rem;
    }

    /* Lead text */
    .lead {
        font-size: 1rem;
    }

    /* Note: Flip card styles are handled by flip-card.css component file */

    /* Simple cards - compact */
    .simple-card {
        height: 280px;
    }

    .simple-card .card-title {
        font-size: 1em;
    }

    .simple-card-body {
        padding: 1rem;
    }

    /* Test cards */
    .test-card {
        margin-bottom: 15px;
    }

    .test-card .card-title {
        font-size: 1rem;
    }

    /* Pricing cards */
    .pricing-header {
        padding: 25px 15px;
    }

    .pricing-header h3 {
        font-size: 1.2rem;
    }

    .pricing-header i {
        font-size: 2rem;
    }

    .pricing-body {
        padding: 15px;
    }

    .pricing-price {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .pricing-price h2 {
        font-size: 1.8rem;
    }

    .pricing-price span {
        font-size: 0.85rem;
    }

    .pricing-features {
        margin-bottom: 20px;
    }

    .pricing-features li {
        font-size: 0.8rem;
        padding: 6px 0;
    }

    .pricing-features li i {
        font-size: 0.9rem;
    }

    /* Buttons - compact */
    .test-card .btn,
    .pricing-card .btn,
    .flip-card .btn {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    /* Year buttons in flip card back */
    .year-selection-grid {
        gap: 6px;
        max-width: 240px;
    }

    /* Message boxes */
    .message-box {
        padding: 15px;
        font-size: 0.9rem;
    }

    /* Popular badge */
    .popular-badge {
        font-size: 0.7rem;
        padding: 5px 30px;
    }

    /* Savings badge */
    .savings-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

/* Success/Error Messages */
.message-box {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    opacity: 0.3;
}

/* Button Animations */
@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(40, 120, 235, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(40, 120, 235, 0);
    }
}

.btn-primary:focus,
.btn-success:focus {
    animation: buttonPulse 1s infinite;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet and below (992px) */
@media (max-width: 992px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Stack main option cards on tablet */
    .hover-lift .card-body {
        padding: 2.5rem !important;
    }

    /* Adjust button sizes */
    .subject-practice-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    #logoutBtn,
    .back-to-top,
    .btn,
    button {
        display: none !important;
    }

    .welcome-section,
    .test-options-section {
        page-break-inside: avoid;
    }
}