/**
 * Tutor Custom Button - Frontend Styles
 */

/* Custom Button Wrapper */
.tcb-custom-button-wrapper {
    margin-top: 0;
}

.tcb-custom-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcb-custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tcb-custom-button:active {
    transform: translateY(0);
}

/* Inline Content */
.tcb-inline-content {
    animation: tcbSlideDown 0.3s ease;
}

@keyframes tcbSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.tcb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.tcb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: tcbFadeIn 0.3s ease;
}

.tcb-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: tcbSlideUp 0.3s ease;
    width: 600px;
}

@keyframes tcbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tcbSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.tcb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.tcb-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

.tcb-modal-body {
    padding: 40px 30px 30px;
    min-height: 200px;
}

/* Loading State */
.tcb-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.tcb-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: tcbSpin 1s linear infinite;
}

@keyframes tcbSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tcb-modal-content {
        width: 95%;
        max-width: 95%;
    }

    .tcb-modal-body {
        padding: 30px 20px 20px;
    }
}

/* Error Message */
.tcb-error {
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
    margin: 10px 0;
}

/* Success Message */
.tcb-success {
    padding: 15px;
    background: #efe;
    border: 1px solid #cfc;
    border-radius: 4px;
    color: #060;
    margin: 10px 0;
}