/* Custom styles for Flashcards app */

/* Body and layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand i {
    margin-right: 0.25rem;
}

/* Cards */
.card {
    border-radius: 0.5rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Flashcard training */
.flashcard {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    perspective: 1000px;
}

.flashcard:hover {
    transform: scale(1.02);
}

.flashcard-inner {
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.flashcard-back {
    transform: rotateY(180deg);
}

/* Rating buttons */
.rating-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-buttons .btn {
    min-width: 100px;
}

.btn-again {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-hard {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: white;
}

.btn-good {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.btn-easy {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: black;
}

/* Audio button */
.btn-audio {
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 50%;
}

/* Statistics */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table-vocabulary td {
    vertical-align: middle;
}

/* Search and filter */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
}

/* Progress indicators */
.progress-sm {
    height: 0.5rem;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flashcard {
        min-height: 200px;
        font-size: 1.25rem;
    }

    .rating-buttons .btn {
        min-width: 80px;
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Deck cards */
.deck-card {
    transition: box-shadow 0.2s ease;
}

.deck-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Visibility badges */
.badge-private {
    background-color: #6c757d;
}

.badge-unlisted {
    background-color: #fd7e14;
}

.badge-shared {
    background-color: #0d6efd;
}

.badge-public {
    background-color: #198754;
}

/* Import report */
.import-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.import-stat {
    text-align: center;
}

.import-stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.import-stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}
