@import url(./font-families.css);

:root {
    --input-field-bg: #e6e6e6;
    --theme-green: #5ebcbd;
    --theme-green-dark: #004b54 !important;
}

body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://silsilaazeemia.org/bg-image/bg1.jpg);
    background-position: top right;
    background-size: cover;
    font-family: 'baloo bhaijaan 2', 'roboto', serif;
    background-attachment: fixed;
    font-size: 16px;
}

.main {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 1rem;
    width: 90%;
    margin-inline: auto;
    min-height: 500px;
    border-radius: 10px;
    box-sizing: border-box;
}

.workshop-logo {
    display: inline-block;
    position: absolute;
    top: 30px;
    left: 15px;
}

.bg-gradient-btn {
    background-color: #004b54 !important;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.bg-gradient-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.19);
    color: #FFFFFF;
}

.pulse {
    animation: pulse-animation 1s infinite;
}

.class-grid {
    display: grid;
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1em;
    column-gap: 0.5em;
    margin-top: 1em;
    padding: 0;
}

.class-card {
    border-radius: 16px;
    box-sizing: border-box;
    max-width: 230px;
    padding: 10px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
}

.class-card:hover {
    color: white;
}

.view-attendance {
    color: #e74c3c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 5px 17px;
    border: 2px solid #e74c3c;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
    margin-bottom: 30px;
}

.view-attendance:hover {
    background-color: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.introductory-class {
    grid-column: span 2;
}

.introductory-class > div {
    max-width: none !important;
}

.class-card:is(.ended, .upcoming, .live):hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.class-card.ended {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.class-card.upcoming {
    animation: blink 1.5s infinite;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    cursor: pointer;
}

.class-card.test {
    border: 2px solid white;
    max-width: none !important;
}

.class-card.scheduled {
    cursor: not-allowed;
}

.class-card.live {
    animation: blink 1.5s infinite;
    background: linear-gradient(135deg, #ff8e0c 0%, #e37e06 100%);
}

.blink {
    animation: blink 2s infinite;
}

.class-card h3 {
    color: whitesmoke;
    text-wrap: nowrap;
    word-break: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.class-card .date {
    font-size: 14px;
    margin: 10px auto;
    font-family: 'monospace', serif;
    opacity: 0.9;
    font-weight: 400;
}

.class-card .status {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.2);
}

.class-card .urdu {
    font-size: 17px;
}

.class-card.test {
    grid-column: max(1);
    margin-top: 2em;
    background-color: #fefefe;
}

.test-section {
    background-color: #fffff0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin-top: 20px;
    grid-column: 1 / -1;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

@keyframes blink2 {
    50% {
        opacity: 1;
    }
}


@media (min-width: 576px) {

    .main {
        padding: 15px;
    }

    .class-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 1em;
        column-gap: 1em;
        margin-top: 1em;
    }

    .class-card {
        max-width: 195px;
        padding: 15px;
    }

    .introductory-class {
        grid-column: span 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .introductory-class > div {
        max-width: 50%;
        width: 50%;
    }

    .class-card h3 {
        font-size: 22px;
    }

}

@media (min-width: 768px) {
    .main {
        min-width: 700px;
        margin-inline: auto;
        width: 90%;
        max-width: 820px;
        border-radius: 10px;
        padding: 15px;
    }

    .class-grid {
        row-gap: 1em;
        column-gap: clamp(10px, 2.5vw, 40px);
        margin-top: 1em;
    }

    .class-card {
        max-width: none;
        padding: 20px;
    }

    .introductory-class {
        grid-column: span 3;
        display: flex;
        justify-content: center;
    }

    .introductory-class > div {
        max-width: 50%;
        width: 50%;
    }

    .class-card h3 {
        font-size: 22px;
    }
}

@media (min-width: 992px) {
    .main {
        min-width: 820px;
        margin-inline: 4rem;
        width: 100%;
        max-width: 820px;
        border-radius: 10px;
        padding: 30px;
    }

    .class-grid {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 1em;
        margin-inline: auto;
        column-gap: 17px;
        margin-top: 1em;
    }

    .class-card h3 {
        font-size: 24px;
    }

    .introductory-class {
        grid-column: span 4;
    }
}

@media (min-width: 1200px) {
    .main {
        min-width: 900px;
        margin-inline: 5rem;
        width: 100%;
        max-width: 1000px;
        border-radius: 10px;
        padding: 40px;
    }

    .class-grid {
        row-gap: 1em;
        column-gap: 1.2em;
        margin-top: 1em;
    }

    .class-card h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .workshop-logo {
        display: none;
    }
}

@keyframes shakeY {

    0%,
    100% {
        transform: translateY(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateY(-3px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateY(3px);
    }
}

/* Apply the animation to an element */
.shakeY {
    animation: shakeY 0.6s ease-in-out;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 153, 32, 0.6);
    }

    50% {
        box-shadow: 0 0 20px 20px rgba(255, 142, 12, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 142, 12, 0);
    }
}

.question-container {
    border-radius: 10px;
    box-shadow: 0 0px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    padding: 10px;
    background-color: rgba(230, 230, 230, 0.8);
}

.question-number {
    color: #4285f4;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-text {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.options-container.correct {
    background-color: #d7ffde;
}

.options-container.wrong {
    background-color: #ffd4d4;
}

.options-container:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(200, 200, 200, 0.9);
}

.options-container:has(input[name="option"]:checked) {
    border-color: #4285f4;
}

.options-container.correct {
    border-color: #66ff7f !important;
}

.options-container.wrong {
    border-color: #fb4c4c !important;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.option-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option-radio:checked {
    background: #3ecd7d;
    border-color: #3ecd7d;
    position: relative;
}

.option-radio:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.option-text {
    color: #495057;
    font-size: 16px;
    line-height: 1.4;
    text-transform: capitalize;
}

.option-radio:checked + .option-text {
    font-weight: bold;
}

/* Video Popup Styles */
.attend-class-popup {
    position: absolute;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.attend-class-popup.active {
    display: flex;
}

.lecture-assignment {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 10px 30px 30px;
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.attend-class-content {
    width: 100%;
    /*height: 400px;*/
    background: #000;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    background: #6258cc;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.results-grid {
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
}

.result-card {
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    min-width: 140px;
    border-radius: 15px;
    padding: 15px 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.result-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.result-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.result-card.correct {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.result-card.wrong {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
}

.result-card.score {
    border-color: #6258cc;
    background: linear-gradient(135deg, #faf5ff, #e9d5ff);
}

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

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.correct .result-icon {
    color: #10b981;
}

.wrong .result-icon {
    color: #ef4444;
}

.score .result-icon {
    color: #8b5cf6;
}

.result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

.percentage {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .result-container {
        padding: 30px 20px;
    }

    .title {
        font-size: 2rem;
    }

    .percentage {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin-bottom: 10px;
    }

    .result-card {
        background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
        min-width: 80px;
        width: 100%;
        border-radius: 10px;
        padding: 10px 5px;
        border: 1px solid transparent;
    }

    .result-card::before {
        display: none;
    }

    .result-card:hover {
        transform: translateY(0);
    }

    .result-icon {
        font-size: 1.3rem;
        margin-bottom: 5px;
        display: block;
    }

    .result-label {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 0px;
    }

    .result-value {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .percentage {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .lecture-assignment {
        padding: 10px;
    }

    #attendanceForm label {
        font-size: 0.8rem;
    }
}

.vimeo-progress-bar {
    height: 4px;
    background-color: #fa3044;
    /* progress fill color */
    transition: width 0.3s ease;
    /* smooth animation */
    position: absolute;
    left: 0;
    bottom: 0;
}

.class-attending-list {
    margin: 0 0 1rem;
    padding: 0;
    text-align: left;
    list-style: none;
    font-size: 16px;
}

.class-attending-list .list-item {
    display: inline-block;
    margin: 0 20px 0 0;
}

.class-attending-list .list-item::before {
    content: "\F4D5";
    font-family: "bootstrap-icons", serif;
    font-size: 18px;
    vertical-align: text-bottom !important;
    margin: 0px 5px 0 0;
}

:root {
    --breadcrumb-bg: rgb(220, 219, 219);
    --breadcrumb-bg-hover: rgba(255, 255, 255, 1);
    --clr-theme-accent: #b36405;
    --clr-breadcrumb-active: #228B8D;
}

#breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}


#breadcrumb li {
    float: left;
}

#breadcrumb li a {
    color: #333;
    display: block;
    background: var(--breadcrumb-bg);
    backdrop-filter: blur(5px);
    text-decoration: none;
    position: relative;
    height: 24px;
    line-height: 24px;
    padding: 0 5px;
    text-align: center;
    margin-right: 12px;
    margin-bottom: 5px;
}

#breadcrumb li:nth-child(even) a {
    background-color: var(--breadcrumb-bg);
}

#breadcrumb li:nth-child(even) a:before {
    border-color: var(--breadcrumb-bg);
    border-left-color: transparent;
}

#breadcrumb li:nth-child(even) a:after {
    border-left-color: var(--breadcrumb-bg);
}

#breadcrumb li:first-child a {
    padding-left: 10px;
    -moz-border-radius: 4px 0 0 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px 0 0 4px;
}

#breadcrumb li:first-child a:before {
    border: none;
}

#breadcrumb li:last-child a {
    padding-right: 15px;
    -moz-border-radius: 0 4px 4px 0;
    -webkit-border-radius: 0;
    border-radius: 0 4px 4px 0;
}

#breadcrumb li:last-child a:after {
    border: none;
}

#breadcrumb li a:before,
#breadcrumb li a:after {
    content: "";
    position: absolute;
    top: 0;
    border-color: var(--breadcrumb-bg);
    border-style: solid;
    border-width: 12px 6px;
    width: 0;
    height: 0;
}

#breadcrumb li a:before {
    left: -9px;
    border-left-color: transparent;
}

#breadcrumb li a:after {
    left: 100%;
    border-color: transparent;
    border-left-color: var(--breadcrumb-bg);
}

#breadcrumb li a:hover {
    background-color: var(--breadcrumb-bg-hover);
}

#breadcrumb li a:hover:before {
    border-color: var(--breadcrumb-bg-hover);
    border-left-color: transparent;
}

#breadcrumb li a:hover:after {
    border-left-color: var(--breadcrumb-bg-hover);
}

#breadcrumb li a.active {
    background-color: var(--clr-breadcrumb-active);
    color: #fff;
}

#breadcrumb li a.active:before {
    border-color: var(--clr-breadcrumb-active);
    border-left-color: transparent;
}

#breadcrumb li a.active:after {
    border-left-color: var(--clr-breadcrumb-active);
}


.action-button {
    display: block;
    text-decoration: none;
    color: white;
    padding: 10px 10px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    transform: translateY(0);
}

.action-button:hover:not(.disabled) {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
}

.action-button.disabled {
    opacity: 0.6;
}

.action-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}


.action-button:hover::after {
    width: 300px;
    height: 300px;
}

.action-button.disabled:hover::after {
    width: 0px;
    height: 0px;
}

.button-content {
    position: relative;
    z-index: 2;
}

.button-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-urdu {
    font-size: 17px;
    display: block;
    opacity: 1;
    line-height: 1.4;
}

.enter-classroom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.enter-classroom:hover:not(.disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.register-course {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
}

.register-course:hover:not(.disabled) {
    background: linear-gradient(135deg, #38b2ac 0%, #059669 100%);
}

/* Live class button variant */
.live-class {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    position: relative;
    animation: livePulse 2s infinite;
}

.live-class:hover:not(.disabled) {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    animation: none;
}

.register-pulse {
    animation: registerPulse 1.5s infinite;
}

.live-class::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.live-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: liveBlink 1s infinite;
}

@keyframes liveBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

@keyframes livePulse {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

@keyframes registerPulse {
    0% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 0 0 rgb(27, 149, 74);
    }

    70% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.verify-message {
    background-color: #f2f6f8;
    border-left: 4px solid var(--theme-green);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.verify-message p {
    color: #333;
    margin: 0;
    font-size: 16px;
}

.theme-anchor-links {
    color: #228B8D;
    text-decoration: underline;
    text-decoration-color: #228B8D;
}

.theme-anchor-links:hover {
    color: #3fb4b6;
    text-decoration: underline;
    text-decoration-color: #3fb4b6;
}


.info-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 13px;
}

.info-box strong {
    color: #856404;
}

.info-box p {
    color: #856404;
    margin: 0;
}
