/* Crow Passwords - CrownNation Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

.crow-passwords-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.crow-passwords-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.crow-passwords-container > * {
    position: relative;
    z-index: 1;
}

/* Header */
.crow-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    position: relative;
}

.crow-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
}

.crow-logo {
    margin-bottom: 20px;
}

.crow-logo-svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    animation: crowPulse 3s ease-in-out infinite;
}

@keyframes crowPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.8)); }
}

.crow-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    animation: crowGlow 2s ease-in-out infinite alternate;
}

@keyframes crowGlow {
    from { text-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
    to { text-shadow: 0 0 50px rgba(255, 0, 0, 1), 0 0 100px rgba(255, 0, 0, 0.5); }
}

.crow-subtitle {
    color: #ff0000;
    font-size: 16px;
    margin-top: 10px;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Main Card */
.crow-main-card {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    border: 2px solid #ff0000;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 50px rgba(255, 0, 0, 0.2),
        inset 0 0 50px rgba(255, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.crow-main-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, transparent, #ff0000, transparent);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.3;
    animation: crowBorder 4s linear infinite;
}

@keyframes crowBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password Display */
.crow-password-display {
    background: #000000;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.crow-password-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    animation: crowScan 3s ease-in-out infinite;
}

@keyframes crowScan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.crow-password-output {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    color: #ff0000;
    text-align: center;
    min-height: 30px;
    word-break: break-all;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    position: relative;
}

.crow-placeholder {
    color: #555;
    font-size: 16px;
}

.crow-password-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* Buttons */
.crow-btn {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.crow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.crow-btn:hover::before {
    left: 100%;
}

.crow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 0, 0, 0.5);
}

.crow-btn:active {
    transform: translateY(0);
}

.crow-btn-copy {
    background: #222;
    border: 2px solid #ff0000;
    padding: 12px;
}

.crow-btn-copy:hover {
    background: #ff0000;
}

.crow-btn-refresh {
    padding: 12px 30px;
}

/* Strength Meter */
.crow-strength-meter {
    background: #000;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #333;
}

.crow-strength-bar {
    flex: 1;
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.crow-strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0000, #ff6600, #ffcc00, #00ff00);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.crow-strength-text {
    color: #888;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 80px;
    text-align: right;
}

/* Options Grid */
.crow-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.crow-option-group {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
}

.crow-label {
    display: block;
    color: #ff0000;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Length Control */
.crow-length-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.crow-length-input {
    background: #000;
    border: 2px solid #ff0000;
    color: #ff0000;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    width: 80px;
    padding: 8px;
    border-radius: 8px;
    outline: none;
}

.crow-btn-minus,
.crow-btn-plus {
    background: #222;
    border: 2px solid #ff0000;
    color: #ff0000;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crow-btn-minus:hover,
.crow-btn-plus:hover {
    background: #ff0000;
    color: #fff;
}

.crow-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #222;
    outline: none;
    -webkit-appearance: none;
}

.crow-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transition: transform 0.2s;
}

.crow-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Checkboxes */
.crow-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crow-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    min-height: 25px;
}

.crow-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.crow-checkmark {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: #000;
    border: 2px solid #444;
    border-radius: 5px;
    transition: all 0.3s;
}

.crow-checkbox:hover .crow-checkmark {
    border-color: #ff0000;
}

.crow-checkbox input:checked ~ .crow-checkmark {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.crow-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.crow-checkbox input:checked ~ .crow-checkmark::after {
    display: block;
}

.crow-check-label {
    color: #ccc;
    font-size: 15px;
    transition: color 0.3s;
}

.crow-checkbox:hover .crow-check-label {
    color: #fff;
}

.crow-checkbox input:checked ~ .crow-check-label {
    color: #ff0000;
    font-weight: 700;
}

/* Email Section */
.crow-email-section {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.crow-email-toggle {
    margin-bottom: 15px;
}

.crow-email-form {
    display: none;
    gap: 10px;
    animation: crowSlideDown 0.3s ease;
}

.crow-email-form.active {
    display: flex;
}

@keyframes crowSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crow-email-input {
    flex: 1;
    background: #000;
    border: 2px solid #444;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.crow-email-input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.crow-btn-email {
    background: linear-gradient(135deg, #222 0%, #333 100%);
    border: 2px solid #ff0000;
    white-space: nowrap;
}

.crow-btn-email:hover {
    background: #ff0000;
}

/* History */
.crow-history-section {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.crow-history-title {
    font-family: 'Orbitron', sans-serif;
    color: #ff0000;
    font-size: 18px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.crow-history-note {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    font-style: italic;
}

.crow-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crow-history-item {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    animation: crowFadeIn 0.3s ease;
}

@keyframes crowFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.crow-history-item:hover {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.crow-history-password {
    font-family: 'Orbitron', monospace;
    color: #ff0000;
    font-size: 14px;
    letter-spacing: 2px;
}

.crow-history-password .dots {
    color: #444;
    letter-spacing: 1px;
}

.crow-history-actions {
    display: flex;
    gap: 8px;
}

.crow-history-copy {
    background: transparent;
    border: 1px solid #444;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.crow-history-copy:hover {
    border-color: #ff0000;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.crow-history-time {
    color: #666;
    font-size: 12px;
}

/* Footer */
.crow-footer {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 14px;
}

.crow-footer a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.crow-footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* Toast Notification */
.crow-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 30px rgba(255, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.crow-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Admin Toast */
.crow-admin-toast {
    position: fixed;
    top: 50px;
    right: 30px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 30px rgba(255, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.crow-admin-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 600px) {
    .crow-title {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .crow-main-card {
        padding: 20px;
    }

    .crow-password-output {
        font-size: 16px;
    }

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

    .crow-email-form {
        flex-direction: column;
    }

    .crow-history-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Loading Animation */
.crow-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: crowSpin 1s ease-in-out infinite;
}

@keyframes crowSpin {
    to { transform: rotate(360deg); }
}

/* Particle effect */
.crow-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}
