:root {
    --primary-color: #4fc3f7;
    --secondary-color: #2196f3;
    --accent-color: #03a9f4;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --card-color: #2d2d2d;
    --text-color: #e0e0e0;
    --text-secondary: #9e9e9e;
    --success-color: #4caf50;
    --error-color: #f44336;
    --pending-color: #ff9800;
    --border-color: #333333;
    --glow: rgba(3, 169, 244, 0.15);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    background: radial-gradient(circle at 50% 50%, #1a1a1a, var(--background-color));
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.logo-container {
    text-align: center;
    margin: 1rem 0 2rem;
    /* Reserve space for the logo */
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ascii-logo {
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1;
    margin: 0 auto;
    white-space: pre;
    text-shadow: 0 0 10px var(--glow);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1, h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-color);
}

.btn, .button {
    background-color: var(--primary-color);
    color: #000000;
    font-weight: 600;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover, .button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.primary-btn, .primary-button {
    background-color: var(--accent-color);
}

.status-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.search-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 250px;
}

.button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-right: 12px;
}

.refresh-button svg {
    transition: transform 0.3s ease;
}

.refresh-button:hover svg {
    transform: rotate(90deg);
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-right: 12px;
}

.search-button svg {
    transition: transform 0.3s ease;
}

.search-button:hover svg {
    transform: scale(1.1);
}

.refresh-button.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

.status-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #ff8a80;
    border-left: 4px solid var(--error-color);
}

.status-info {
    background-color: rgba(3, 169, 244, 0.1);
    color: #80d8ff;
    border-left: 4px solid var(--primary-color);
}

.assignments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.assignment-card {
    background-color: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    
    /* Simple, reliable transition */
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Separate, clean hover state */
.assignment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.book-cover-container {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #242424;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.book-cover.loading {
    opacity: 0;
}

.book-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #242424;
    position: absolute;
    top: 0;
    left: 0;
}

.assignment-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.assignment-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    max-height: 2.6rem;
}

.book-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-author {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assignment-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: auto;
    align-self: flex-start;
}

.status-doing {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ffcc80;
}

.status-corrected {
    background-color: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
}

.status-done {
    background-color: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
}

.status-available {
    background-color: rgba(3, 169, 244, 0.2);
    color: #81d4fa;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 420px;
    animation: modalFadeIn 0.3s ease;
    max-height: 80vh;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-content {
    background-color: var(--card-color);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.close-btn:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-book-cover-container {
    width: 100px;
    height: 140px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: #242424;
}

.modal-book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.modal-book-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #242424;
    position: absolute;
    top: 0;
    left: 0;
}

.book-info {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.book-details {
    flex: 1;
}

.book-details p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.activity-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

#readActivityBtn {
    margin-left: 10px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Time-per-page minimalist controls */
.time-per-page-controls {
    margin-top: 10px;
}

.time-per-page-controls label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.time-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.time-input {
    width: 84px;
    text-align: center;
    padding: 8px 10px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.hint {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Ensure time input stays compact and doesn't stretch (override after .form-input) */
.form-input.time-input {
    width: 84px;
    text-align: center;
    flex: 0 0 84px;
    padding: 8px 10px !important;
}

.time-input-row .btn-sm {
    flex: 0 0 auto;
}

footer {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* RA Login Section */
.ra-login-section {
    display: block; /* Show by default, hide via JS when key exists */
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    text-align: center;
    background: var(--card-color);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.ra-login-section h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.ra-login-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.login-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Login Modal Styles */
#loginModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

#accountSelectorModal {
    transition: opacity 0.2s ease;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
}

#accountSelectorModal .account-selector-content {
    display: block !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

#loginModal .login-modal {
    display: block !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 420px;
    animation: modalFadeIn 0.3s ease;
}

#loginModal .modal-content {
    background-color: var(--card-color);
    padding: 0;
    border-radius: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-body {
    padding: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--surface-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.toggle-btn,
.clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.toggle-btn:hover,
.clear-btn:hover {
    color: var(--text-color);
}

.clear-btn {
    right: 38px;
}

.clear-btn.hidden {
    display: none;
}

.button-group {
    margin-top: 0.5rem;
}

.button-group .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Badge for account count */
.badge {
    background-color: var(--accent-color);
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 8px;
    font-weight: 600;
}

/* Quick login button */
#quickLoginBtn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

/* Account Selector Modal Styles */
.account-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.account-selector-modal.hidden {
    display: none;
}

.account-selector-content {
    background-color: var(--card-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.account-selector-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-selector-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.account-selector-body {
    padding: 1rem;
    max-height: 50vh;
    overflow-y: auto;
}

.saved-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.account-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.account-info {
    flex: 1;
}

.account-name {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.account-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.account-last-used {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.account-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-use-account {
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-use-account:hover {
    background-color: var(--secondary-color);
}

.btn-remove-account {
    padding: 6px 10px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-remove-account:hover {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: var(--error-color);
}

.account-selector-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--card-color);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.no-accounts-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: #ff8a80;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--error-color);
    text-align: center;
}

.info-message {
    background-color: rgba(3, 169, 244, 0.1);
    color: #80d8ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

/* Loading styles */
.btn.loading, .button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after, .button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: button-loading 0.8s linear infinite;
}

@keyframes button-loading {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Bookmark container styles */
.bookmark-container {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    text-align: center;
    background: var(--card-color);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.bookmarklet-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 0.5rem;
    flex-wrap: wrap;
}

.bookmarklet-options .btn {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.15) 0%, rgba(33, 150, 243, 0.15) 100%);
    border: 1px solid rgba(3, 169, 244, 0.2);
    min-width: 160px;
    color: var(--text-color);
}

.bookmarklet-options .btn:hover {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.25) 0%, rgba(33, 150, 243, 0.25) 100%);
    border-color: rgba(3, 169, 244, 0.3);
}

.separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Video Toggle and Container */
.video-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
    border: 1px solid rgba(3, 169, 244, 0.2);
}

.video-toggle:hover {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.15) 0%, rgba(33, 150, 243, 0.15) 100%);
    border-color: rgba(3, 169, 244, 0.3);
}

.video-toggle::before {
    content: '📹';
    margin-right: 10px;
}

.video-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.video-toggle.active::after {
    transform: rotate(180deg);
}

.video-container {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto 2rem;
    max-width: 1000px;
}

.video-container .card {
    background-color: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Video placeholder styles */
.video-placeholder {
    width: 100%;
    height: 315px;
    background-color: #242424;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.video-loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.video-loading-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    transition: transform 0.2s ease-in-out;
}

.video-placeholder:hover .video-loading-placeholder svg {
    transform: scale(1.1);
    opacity: 1;
    color: #ff0000;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(3, 169, 244, 0.8);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(3, 169, 244, 0.3);
}

.video-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    max-width: 90%;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .assignments-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal {
        width: 95%;
    }

    .book-info {
        flex-direction: column;
        align-items: center;
    }
    
    .book-details {
        width: 100%;
        text-align: center;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    
    .checkbox-container {
        width: 100%;
    }

    .button-container {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    
    .search-button, 
    .refresh-button {
        flex: 1;
        justify-content: center;
        margin-right: 0;
    }
}

@media (max-width: 500px) {
    .assignments-container {
        grid-template-columns: 1fr;
    }
    
    .ascii-logo {
        font-size: 12px;
    }
    
    .container {
        padding: 15px;
    }
    
    .bookmarklet-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        margin: 5px 0;
    }

    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .button-container {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    
    .search-button, 
    .refresh-button {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
}

/* Notification Modal Styles */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.notification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: 90%;
    max-width: 340px;
    animation: modalFadeIn 0.3s ease;
}

.notification-content {
    background-color: var(--card-color);
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.notification-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.notification-content p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
}

.notification-actions .btn {
    padding: 8px 18px;
    min-width: 80px;
}

/* Search message styles */
.search-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
}

/* Search modal styles */
.search-form {
    margin: 20px 0;
}

.search-input-container {
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.2);
}

.search-actions {
    display: flex;
    justify-content: flex-end;
}

.altcha {
    border: none !important;
}