/* DropMort Modern UI Styles with Firefox dropdown fixes, fog effect, and desktop responsive layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #7c3aed;
    --primary-blue: #2563eb;
    --primary-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

body {
    background: linear-gradient(300deg,#950089,#4800ff,#011599,#950058,#2d0168);
    background-size: 300% 300%;
    animation: gradient-animation 30s ease infinite;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
}

/* 58 particles total (40 + 18 for 45% increase) */
.particle:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; top: 100vh; }
.particle:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; top: 100vh; }
.particle:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 2s; top: 100vh; }
.particle:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 0.5s; top: 100vh; }
.particle:nth-child(5) { left: 50%; animation-duration: 9s; animation-delay: 1.5s; top: 100vh; }
.particle:nth-child(6) { left: 60%; animation-duration: 11s; animation-delay: 3s; top: 100vh; }
.particle:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 2.5s; top: 100vh; }
.particle:nth-child(8) { left: 80%; animation-duration: 7s; animation-delay: 4s; top: 100vh; }
.particle:nth-child(9) { left: 90%; animation-duration: 15s; animation-delay: 1.2s; top: 100vh; }
.particle:nth-child(10) { left: 15%; animation-duration: 6s; animation-delay: 3.5s; top: 100vh; }
.particle:nth-child(11) { left: 5%; animation-duration: 16s; animation-delay: 4.5s; top: 100vh; }
.particle:nth-child(12) { left: 25%; animation-duration: 7s; animation-delay: 2.3s; top: 100vh; }
.particle:nth-child(13) { left: 35%; animation-duration: 11s; animation-delay: 1.8s; top: 100vh; }
.particle:nth-child(14) { left: 45%; animation-duration: 13s; animation-delay: 3.2s; top: 100vh; }
.particle:nth-child(15) { left: 55%; animation-duration: 9s; animation-delay: 0.8s; top: 100vh; }
.particle:nth-child(16) { left: 65%; animation-duration: 12s; animation-delay: 2.7s; top: 100vh; }
.particle:nth-child(17) { left: 75%; animation-duration: 8s; animation-delay: 1.4s; top: 100vh; }
.particle:nth-child(18) { left: 85%; animation-duration: 14s; animation-delay: 3.8s; top: 100vh; }
.particle:nth-child(19) { left: 95%; animation-duration: 10s; animation-delay: 2.1s; top: 100vh; }
.particle:nth-child(20) { left: 12%; animation-duration: 15s; animation-delay: 4.2s; top: 100vh; }
.particle:nth-child(21) { left: 7%; animation-duration: 11s; animation-delay: 1.7s; top: 100vh; }
.particle:nth-child(22) { left: 17%; animation-duration: 9s; animation-delay: 3.1s; top: 100vh; }
.particle:nth-child(23) { left: 27%; animation-duration: 13s; animation-delay: 0.9s; top: 100vh; }
.particle:nth-child(24) { left: 37%; animation-duration: 8s; animation-delay: 2.8s; top: 100vh; }
.particle:nth-child(25) { left: 47%; animation-duration: 12s; animation-delay: 1.3s; top: 100vh; }
.particle:nth-child(26) { left: 57%; animation-duration: 10s; animation-delay: 4.1s; top: 100vh; }
.particle:nth-child(27) { left: 67%; animation-duration: 14s; animation-delay: 2.6s; top: 100vh; }
.particle:nth-child(28) { left: 77%; animation-duration: 9s; animation-delay: 0.4s; top: 100vh; }
.particle:nth-child(29) { left: 87%; animation-duration: 11s; animation-delay: 3.7s; top: 100vh; }
.particle:nth-child(30) { left: 97%; animation-duration: 13s; animation-delay: 1.9s; top: 100vh; }
.particle:nth-child(31) { left: 3%; animation-duration: 8s; animation-delay: 2.4s; top: 100vh; }
.particle:nth-child(32) { left: 13%; animation-duration: 10s; animation-delay: 0.7s; top: 100vh; }
.particle:nth-child(33) { left: 23%; animation-duration: 12s; animation-delay: 3.3s; top: 100vh; }
.particle:nth-child(34) { left: 33%; animation-duration: 14s; animation-delay: 1.6s; top: 100vh; }
.particle:nth-child(35) { left: 43%; animation-duration: 9s; animation-delay: 4.4s; top: 100vh; }
.particle:nth-child(36) { left: 53%; animation-duration: 11s; animation-delay: 2.2s; top: 100vh; }
.particle:nth-child(37) { left: 63%; animation-duration: 13s; animation-delay: 0.6s; top: 100vh; }
.particle:nth-child(38) { left: 73%; animation-duration: 8s; animation-delay: 3.9s; top: 100vh; }
.particle:nth-child(39) { left: 83%; animation-duration: 10s; animation-delay: 1.1s; top: 100vh; }
.particle:nth-child(40) { left: 93%; animation-duration: 12s; animation-delay: 2.9s; top: 100vh; }
/* Additional 18 particles */
.particle:nth-child(41) { left: 8%; animation-duration: 15s; animation-delay: 5s; top: 100vh; }
.particle:nth-child(42) { left: 18%; animation-duration: 9s; animation-delay: 1.5s; top: 100vh; }
.particle:nth-child(43) { left: 28%; animation-duration: 11s; animation-delay: 3.7s; top: 100vh; }
.particle:nth-child(44) { left: 38%; animation-duration: 13s; animation-delay: 0.3s; top: 100vh; }
.particle:nth-child(45) { left: 48%; animation-duration: 7s; animation-delay: 2.1s; top: 100vh; }
.particle:nth-child(46) { left: 58%; animation-duration: 14s; animation-delay: 4.8s; top: 100vh; }
.particle:nth-child(47) { left: 68%; animation-duration: 10s; animation-delay: 1.9s; top: 100vh; }
.particle:nth-child(48) { left: 78%; animation-duration: 12s; animation-delay: 3.4s; top: 100vh; }
.particle:nth-child(49) { left: 88%; animation-duration: 8s; animation-delay: 0.8s; top: 100vh; }
.particle:nth-child(50) { left: 98%; animation-duration: 16s; animation-delay: 2.7s; top: 100vh; }
.particle:nth-child(51) { left: 2%; animation-duration: 11s; animation-delay: 4.3s; top: 100vh; }
.particle:nth-child(52) { left: 22%; animation-duration: 9s; animation-delay: 1.6s; top: 100vh; }
.particle:nth-child(53) { left: 42%; animation-duration: 13s; animation-delay: 3.9s; top: 100vh; }
.particle:nth-child(54) { left: 62%; animation-duration: 7s; animation-delay: 0.2s; top: 100vh; }
.particle:nth-child(55) { left: 82%; animation-duration: 15s; animation-delay: 2.5s; top: 100vh; }
.particle:nth-child(56) { left: 1%; animation-duration: 10s; animation-delay: 4.7s; top: 100vh; }
.particle:nth-child(57) { left: 52%; animation-duration: 14s; animation-delay: 1.2s; top: 100vh; }
.particle:nth-child(58) { left: 72%; animation-duration: 8s; animation-delay: 3.6s; top: 100vh; }

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.05em;
    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 60px rgba(255, 255, 255, 0.2),
        0 0 100px rgba(124, 58, 237, 0.1);
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.subtitle {
    color: #ffffff;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    opacity: 0.9;
}

.card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

/* General select styling fixes */
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 3rem 1rem 1rem; /* Added more padding for text spacing */
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMC41OSBMNS45OSA2TDEuNDEgTCIgc3Ryb2tlPSIjOUI5QkIwIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
}

select option {
    color: #c0c0c0;
    background-color: #2a2a2a;
}

textarea::placeholder, input::placeholder {
    color: #c0c0c0;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.05);
}

.option-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.option-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Special styling for the password input in option cards */
.option-subtitle input[type="password"],
.option-subtitle input[type="text"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
    font-size: 0.75rem !important;
    padding: 0.5rem 1.5rem 0.5rem 0.75rem !important;
    width: 100% !important;
    border-radius: 8px !important;
    margin-top: 0.25rem !important;
}

.option-subtitle input[type="password"]:focus,
.option-subtitle input[type="text"]:focus {
    border-color: var(--primary-purple) !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.option-subtitle select {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.75rem;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem; /* Added proper padding for text */
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Firefox-specific fixes for dropdown in option cards */
@-moz-document url-prefix() {
    .option-subtitle select {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary) !important;
        padding: 0.5rem 1.5rem 0.5rem 0.75rem !important;
        border-radius: 6px !important;
    }

    .option-subtitle select option {
        background-color: #1a1a1a !important;
        color: var(--text-primary) !important;
        padding: 0.5rem !important;
    }
}

.captcha-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.captcha-image {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.primary-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.primary-button:active {
    transform: translateY(0);
}

.security-badge {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
    margin-top: 1rem;
}

.security-icon {
    margin-right: 0.5rem;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-pink);
}

.password-toggle-mini {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-mini:hover {
    color: var(--primary-purple);
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Additional template styles from the original CSS */

/* Message content display */
.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 1rem;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

/* Warning boxes */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
}

.warning-box.large {
    font-size: 1.2rem;
    padding: 1.5rem;
}

/* Link boxes */
.link-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    word-break: break-all;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Copy instruction styling */
.copy-instruction {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* QR codes */
.qr-code {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.qr-code img {
    max-width: 200px;
    height: auto;
    background: white;
    padding: 1rem;
    border-radius: 12px;
}

/* Network note */
.network-note {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Security info */
.security-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.security-info h3 {
    color: var(--success-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.security-info ul {
    list-style: none;
    padding: 0;
}

.security-info li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.security-info li::before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Recipient info */
.recipient-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.recipient-info h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.recipient-info ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.recipient-info li {
    margin-bottom: 0.5rem;
}

/* Button links */
.button-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

.button-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-purple);
}

/* Password sharing */
.password-sharing {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.password-sharing h3 {
    color: var(--warning-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* E2EE notice */
.e2ee-notice {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.e2ee-notice h3 {
    color: var(--success-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.e2ee-notice p {
    color: var(--text-secondary);
    margin: 0;
}

/* Decrypt button */
.decrypt-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.decrypt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

/* Password toggle container */
.password-toggle-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-container input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    width: auto;
    height: auto;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.1);
}

/* Headers */
h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* COMPLETELY REWRITTEN CSS-ONLY TABS */
/* Remove all old tab styles to avoid conflicts */
.network-tabs,
.tab-button,
.tab-content {
    display: none !important;
}

/* New CSS-only tabs implementation */
.css-tabs {
    margin-bottom: 3rem;
    position: relative;
}

.css-tabs .tab-input {
    position: absolute;
    opacity: 0;
    left: -9999px;
}

.css-tabs .tab-labels {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.css-tabs .tab-label {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.css-tabs .tab-label:hover {
    color: var(--text-primary);
}

.css-tabs .tab-panels {
    position: relative;
}

.css-tabs .tab-panel {
    display: none;
    margin-bottom: 2.5rem;
}

/* Show content for selected tab */
.css-tabs #tab1:checked ~ .tab-labels label[for="tab1"],
.css-tabs #tab2:checked ~ .tab-labels label[for="tab2"] {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}

.css-tabs #tab1:checked ~ .tab-panels #panel1,
.css-tabs #tab2:checked ~ .tab-panels #panel2 {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Ensure QR codes display properly */
.css-tabs .qr-code {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.css-tabs .qr-code img {
    max-width: 200px;
    height: auto;
    background: white;
    padding: 1rem;
    border-radius: 12px;
}

/* Add more space for the network note */
.css-tabs .network-note {
    margin-top: 1rem;
    clear: both;
}

.error-alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Security details styling */
.security-details {
    margin-top: 4px;
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 2.5rem;
    }

    /* Mobile-friendly tabs */
    .css-tabs .tab-labels {
        flex-direction: column;
    }

    .css-tabs .tab-label {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .css-tabs #tab1:checked ~ .tab-labels label[for="tab1"],
    .css-tabs #tab2:checked ~ .tab-labels label[for="tab2"] {
        border-bottom-color: transparent;
        border-left-color: var(--primary-purple);
    }

    .link-box {
        padding-right: 4rem;
    }
}

/* Desktop-specific layout adjustments */
@media (min-width: 992px) {
    /* Increase container width for desktop */
    .container {
        max-width: 1000px;
        padding: 2rem;
    }

    /* Create two-column layout for desktop form */
    .desktop-two-column {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 2rem;
        align-items: start;
    }

    /* Left column - message + settings */
    .left-column {
        display: flex;
        flex-direction: column;
    }

    /* Right column - captcha + submit */
    .right-column {
        position: sticky;
        top: 2rem;
    }

    /* Adjust card padding for desktop */
    .card {
        padding: 2.5rem;
    }

    /* Make the message textarea fill more height on desktop */
    .desktop-textarea {
        min-height: 180px;
    }

    /* Make options grid 2x2 on desktop */
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Override mobile styles */
    @media (min-width: 992px) {
        .options-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }

    /* Adjust submit button position */
    .desktop-submit {
        margin-top: 1.5rem;
    }

    /* Adjust security badge on desktop */
    .desktop-security {
        margin-top: 1rem;
    }
}

/* Keep existing mobile styles below this breakpoint */
@media (max-width: 991px) {
    .desktop-two-column {
        display: block;
    }

    .left-column, .right-column {
        width: 100%;
    }

    /* These classes shouldn't affect mobile layout */
    .desktop-textarea, .desktop-submit, .desktop-security {
        /* No special styling needed for mobile */
    }
}

/* Responsive layout for wider screens */
@media (min-width: 768px) {
    /* Increase container width */
    .container {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Two-column layout */
    .desktop-two-column {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 2rem;
        align-items: start;
    }

    /* Left column styles */
    .left-column {
        display: flex;
        flex-direction: column;
    }

    /* Right column styles */
    .right-column {
        position: sticky;
        top: 2rem;
    }

    /* Larger textarea on desktop */
    .desktop-textarea {
        min-height: 180px;
    }

    /* Card padding */
    .card {
        padding: 2.5rem;
    }

    /* Submit button spacing */
    .desktop-submit {
        margin-top: 1.5rem;
    }

    /* Security badge spacing */
    .desktop-security {
        margin-top: 1rem;
    }
}

/* For extra large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}
/* Enhanced security badge */
.security-badge-large {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success-color);
    margin: 1.5rem 0;
}

.security-badge-large .security-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.security-badge-large div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.security-badge-large div:last-child div:last-child {
    font-size: 0.75rem;
    opacity: 0.8;
}
