/* Study Together Modal Styles */

.study-together-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.study-modal-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(25, 25, 30, 0.98) 0%, rgba(15, 15, 20, 0.99) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: studyModalSlideIn 0.3s ease-out;
    font-family: 'Inter', -apple-system, sans-serif;
}

@keyframes studyModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header - Compact */
.study-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.study-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.study-close-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 100, 100, 0.2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ff6b6b;
    font-size: 14px;
}

.study-close-btn:hover,
.study-close-btn:active {
    background: rgba(255, 100, 100, 0.4);
    color: #ff4444;
}

/* Content - Reduced Padding */
.study-modal-content {
    padding: 8px 10px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.study-step {
    display: none;
}

.study-step.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.study-step-header {
    display: none;
}

.study-step-header h3 {
    margin: 0 0 3px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.study-step-subtitle {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Friends List - 2 Column Grid with Scroll */
.study-friends-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-content: start;
}

.study-friends-list::-webkit-scrollbar {
    width: 6px;
}

.study-friends-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.study-friends-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.study-friends-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.study-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    grid-column: span 2;
}

.study-no-friends {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    grid-column: span 2;
}

/* Friend Item - Compact for 2 Column Grid */
.study-friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.study-friend-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.study-friend-item.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.5);
}

.study-friend-checkbox {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.study-friend-item.selected .study-friend-checkbox {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
}

.study-friend-checkbox svg {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.study-friend-item.selected .study-friend-checkbox svg {
    opacity: 1;
}

.study-friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.study-friend-info {
    min-width: 0;
    width: 100%;
}

.study-friend-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.study-friend-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Timer Setup */
.study-timer-setup {
    padding: 12px 16px;
}

.study-time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.study-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.study-time-arrow {
    width: 42px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.study-time-arrow:hover,
.study-time-arrow:active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.study-time-display {
    font-size: 1.8rem;
    font-weight: 500;
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-width: 50px;
    text-align: center;
}

.study-time-sep {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 200;
    margin: 0 4px;
}

.study-time-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.study-time-input:focus {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.study-time-input::-webkit-inner-spin-button,
.study-time-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 50px;
}

.study-time-separator {
    font-size: 36px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 24px;
}

/* Footer */
.study-modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 4px;
    flex-shrink: 0;
}

.study-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.study-btn svg {
    width: 16px;
    height: 16px;
}

.study-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.study-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.study-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.study-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.study-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Waiting Screen (Step 3) */
.study-waiting-screen {
    padding: 12px 0;
}

.study-session-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.study-session-info h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.study-session-timer {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.study-participants-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.study-participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.study-participant-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.study-participant-info {
    flex: 1;
    min-width: 0;
}

.study-participant-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.study-participant-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.study-participant-status.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.study-participant-status.accepted {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.study-participant-status.declined {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.study-waiting-message {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.study-countdown-timer {
    font-size: 18px;
    font-weight: 700;
    color: #ffc107;
    margin-top: 8px;
}

/* Toast Notifications */
.study-toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.study-toast {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.study-toast.removing {
    animation: toastSlideOut 0.3s ease-in-out forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
}

.study-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.study-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.study-toast-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.study-toast-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.study-toast-body {
    margin-bottom: 12px;
}

.study-toast-from {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.study-toast-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.study-toast-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.study-toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
    line-height: 1.5;
}

.study-toast-timer-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8b5cf6;
    margin-top: 8px;
}

.study-toast-timer-info svg {
    width: 14px;
    height: 14px;
}

.study-toast-actions {
    display: flex;
    gap: 8px;
}

.study-toast-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.study-toast-btn svg {
    width: 14px;
    height: 14px;
}

.study-toast-btn-accept {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
}

.study-toast-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.study-toast-btn-decline {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.study-toast-btn-decline:hover {
    background: rgba(244, 67, 54, 0.25);
    border-color: rgba(244, 67, 54, 0.5);
}

.study-toast-countdown {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.study-toast-countdown-time {
    font-weight: 700;
    color: #ffc107;
}

/* Danger Modal (Quit Confirmation) */
.study-danger-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-danger-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.study-danger-container {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(40, 20, 20, 0.98) 0%, rgba(30, 15, 15, 0.98) 100%);
    border-radius: 20px;
    border: 2px solid rgba(244, 67, 54, 0.3);
    box-shadow: 0 20px 60px rgba(244, 67, 54, 0.4);
    padding: 32px 28px;
    text-align: center;
    animation: dangerModalSlideIn 0.3s ease-out;
}

@keyframes dangerModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.study-danger-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(211, 47, 47, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dangerPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(244, 67, 54, 0);
    }
}

.study-danger-icon svg {
    width: 40px;
    height: 40px;
    color: #f44336;
}

.study-danger-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.study-danger-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.study-danger-message strong {
    color: #f44336;
    font-weight: 700;
}

.study-danger-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.study-danger-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-width: 140px;
}

.study-danger-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.study-danger-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.study-danger-btn-confirm {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
}

.study-danger-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
}

/* Quit Toast Notification */
.study-quit-toast {
    background: linear-gradient(135deg, rgba(40, 20, 20, 0.98) 0%, rgba(30, 15, 15, 0.98) 100%);
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.study-toast-icon-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(211, 47, 47, 0.2) 100%);
}

.study-toast-icon-danger svg {
    color: #f44336;
}

.study-toast-submessage {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Success/Completion Toast Notification */
.study-success-toast {
    background: linear-gradient(135deg, rgba(20, 40, 20, 0.98) 0%, rgba(15, 30, 15, 0.98) 100%);
    border: 2px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
}

.study-toast-icon-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
}

.study-toast-icon-success svg {
    color: #4caf50;
}

.study-success-toast .study-toast-title {
    color: #fff;
}

.study-success-toast .study-toast-message {
    color: rgba(255, 255, 255, 0.9);
}

.study-success-toast .study-toast-submessage {
    color: rgba(255, 255, 255, 0.7);
}

/* Break Request Modal */
.study-break-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-break-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.study-break-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
    border-radius: 24px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    padding: 32px 28px;
    text-align: center;
    animation: breakModalSlideIn 0.3s ease-out;
}

@keyframes breakModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.study-break-step {
    display: none;
}

.study-break-step.active {
    display: block;
}

.study-break-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-break-icon svg {
    width: 40px;
    height: 40px;
    color: #6366f1;
}

.study-break-icon-waiting {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.study-break-icon-active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
    animation: successPulse 2s ease-in-out infinite;
}

.study-break-icon-active svg {
    color: #4caf50;
}

.study-break-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.study-break-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
}

.study-break-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.study-break-input {
    width: 80px;
    padding: 12px 16px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.study-break-input:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.12);
}

.study-break-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.study-break-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.study-break-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-width: 120px;
}

.study-break-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.study-break-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.study-break-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.study-break-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.study-break-countdown {
    font-size: 48px;
    font-weight: 700;
    color: #6366f1;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.study-break-timer {
    font-size: 56px;
    font-weight: 700;
    color: #4caf50;
    margin: 24px 0;
    font-family: 'Courier New', monospace;
}

.study-break-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.study-break-participants {
    margin-top: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.study-break-participant-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.study-break-participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.study-break-participant-name {
    flex: 1;
    text-align: left;
    font-size: 14px;
    color: #fff;
}

.study-break-participant-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.study-break-participant-status.approved {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.study-break-participant-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Break Request Toast */
.study-break-request-toast {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 40, 0.98) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.study-break-request-toast .study-toast-actions {
    margin-top: 12px;
}

.study-break-request-toast .study-toast-btn {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 14px;
}

.study-toast-btn-approve {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
}

.study-toast-btn-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.study-toast-btn-deny {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.study-toast-btn-deny:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .study-modal-container {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .study-modal-header {
        padding: 16px 18px;
    }

    .study-modal-title {
        font-size: 20px;
    }

    .study-modal-content {
        padding: 18px;
    }

    .study-friends-list {
        max-height: 260px;
    }

    .study-friend-item {
        padding: 10px 12px;
    }

    .study-friend-avatar {
        width: 38px;
        height: 38px;
    }

    .study-time-input {
        width: 70px;
        height: 60px;
        font-size: 28px;
    }

    .study-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .study-toast-container {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .study-toast {
        padding: 14px;
    }
}

/* ============================================
   KIOSK OPTIMIZATIONS (800x480)
   ============================================ */

@media (max-width: 800px) and (max-height: 500px) {
    .study-modal-container {
        max-width: 440px;
        border-radius: 12px;
    }

    .study-modal-header {
        padding: 12px 16px;
    }

    .study-modal-title {
        font-size: 18px;
    }

    .study-modal-content {
        padding: 12px 16px;
    }

    .study-step-header {
        margin-bottom: 12px;
    }

    .study-step-header h3 {
        font-size: 16px;
    }

    .study-friends-list {
        max-height: 180px;
        /* Reduced for small height */
        margin-bottom: 12px;
    }

    .study-friend-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .study-friend-avatar {
        width: 32px;
        height: 32px;
    }

    .study-time-input {
        width: 60px;
        height: 50px;
        font-size: 24px;
    }

    .study-time-separator {
        font-size: 24px;
        margin-top: 20px;
    }

    .study-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Toasts */
    .study-toast-container {
        top: 10px;
        left: 10px;
        max-width: 300px;
    }

    .study-toast {
        padding: 10px;
    }

    .study-toast-icon {
        width: 32px;
        height: 32px;
    }

    .study-toast-avatar {
        width: 24px;
        height: 24px;
    }

    /* Break Modal */
    .study-break-container {
        padding: 20px;
        max-width: 360px;
    }

    .study-break-title {
        font-size: 18px;
    }

    .study-break-timer {
        font-size: 32px;
    }
}