/* Book Details Manager - Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #001F3F 0%, #000000 100%);
    color: #E8E8E8;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #32CD32;
    padding-bottom: 20px;
}

header h1 {
    color: #32CD32;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

header p {
    color: #1E90FF;
    font-size: 1.1em;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: rgba(30, 144, 255, 0.1);
    border: 2px solid #1E90FF;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.panel h2 {
    color: #32CD32;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(50, 205, 50, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #00FFFF;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

input[type="text"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00FFFF;
    border-radius: 5px;
    color: #E8E8E8;
    font-family: inherit;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #32CD32;
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

button {
    padding: 12px 25px;
    border: 2px solid #32CD32;
    border-radius: 5px;
    background: linear-gradient(135deg, #32CD32 0%, #00FF00 100%);
    color: #000000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    flex: 1;
    min-width: 150px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.7);
    background: linear-gradient(135deg, #00FF00 0%, #32CD32 100%);
}

button:active {
    transform: translateY(0);
}

.secondary-btn {
    background: linear-gradient(135deg, #1E90FF 0%, #00FFFF 100%);
    color: #000000;
    border-color: #1E90FF;
}

.secondary-btn:hover {
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.7);
}

.output-panel {
    background: rgba(50, 205, 50, 0.1);
    border: 2px solid #32CD32;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.3);
    margin-top: 30px;
}

.output-panel h2 {
    color: #00FFFF;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.output-section {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid #FF1493;
    border-radius: 5px;
}

.output-section h3 {
    color: #FF1493;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.output-section pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.5;
}

.color-picker-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.color-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="color"] {
    width: 60px;
    height: 60px;
    border: 2px solid #00FFFF;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="color"]:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.color-value {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00FFFF;
    border-radius: 5px;
    color: #00FFFF;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    text-align: center;
}

.character-card {
    background: rgba(30, 144, 255, 0.2);
    border: 2px solid #00FFFF;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.character-card:hover {
    background: rgba(30, 144, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.character-card input {
    margin-bottom: 10px;
}

.add-character-btn {
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    border-color: #FF1493;
}

.add-character-btn:hover {
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.7);
}

.remove-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF0000 100%);
    border-color: #FF0000;
    color: #FFFFFF;
    padding: 8px 15px;
    font-size: 0.85em;
    width: auto;
    margin-top: 10px;
}

.remove-btn:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.copy-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #000000;
    padding: 8px 15px;
    font-size: 0.85em;
    width: auto;
}

.copy-btn:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.success-message {
    background: rgba(50, 205, 50, 0.2);
    border: 2px solid #32CD32;
    border-radius: 5px;
    padding: 15px;
    color: #32CD32;
    margin-top: 15px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1E90FF;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #1E90FF;
    color: #1E90FF;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab-btn.active {
    background: #1E90FF;
    color: #000000;
    border-color: #32CD32;
}

.tab-btn:hover {
    background: rgba(30, 144, 255, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.scrively-prompt {
    background: rgba(50, 205, 50, 0.1);
    border-left: 4px solid #32CD32;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #E8E8E8;
    font-size: 0.9em;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .export-options {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.8em;
    }

    .main-grid {
        gap: 20px;
    }

    .panel,
    .output-panel {
        padding: 15px;
    }
}

.info-box {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #FFD700;
    font-size: 0.9em;
}

/* AI Idea Generator Styles */

.ai-panel {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 2px solid #FF1493;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
    margin-top: 30px;
}

.ai-panel h2 {
    color: #FF1493;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.5);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.trending-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #8A2BE2;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-card:hover {
    border-color: #FF1493;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
    background: rgba(138, 43, 226, 0.2);
}

.trending-card h3 {
    color: #FF69B4;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.trending-card p {
    color: #E8E8E8;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.trending-card .age-tag {
    display: inline-block;
    background: rgba(255, 20, 147, 0.3);
    color: #FF69B4;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-top: 10px;
}

.ai-button {
    background: linear-gradient(135deg, #FF1493 0%, #8A2BE2 100%);
    border: 2px solid #FF1493;
    padding: 15px 30px;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.8);
    background: linear-gradient(135deg, #8A2BE2 0%, #FF1493 100%);
}

.ai-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ai-button .spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.theme-preview {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00FFFF;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.theme-preview h4 {
    color: #00FFFF;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.color-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.color-sample {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-sample:hover {
    transform: scale(1.1);
    border-color: #00FFFF;
}

.character-preview {
    background: rgba(30, 144, 255, 0.1);
    border-left: 4px solid #00FFFF;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.character-preview h5 {
    color: #00FFFF;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.character-preview p {
    color: #E8E8E8;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: linear-gradient(135deg, #001F3F 0%, #000000 100%);
    border: 3px solid #FF1493;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.8);
}

.loading-content h3 {
    color: #FF1493;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.loading-spinner {
    border: 5px solid rgba(255, 20, 147, 0.3);
    border-top-color: #FF1493;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.ai-feature-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FF1493 0%, #8A2BE2 100%);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enhance-btn {
    background: linear-gradient(135deg, #8A2BE2 0%, #FF1493 100%);
    border: 2px solid #8A2BE2;
    padding: 8px 15px;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.enhance-btn:hover {
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
}

.idea-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .idea-options {
        grid-template-columns: 1fr;
    }
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #32CD32 0%, #00FF00 100%);
    color: #000000;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(50, 205, 50, 0.5);
    font-weight: 600;
    z-index: 10000;
    animation: slideInRight 0.5s ease;
    display: none;
}

.toast.show {
    display: block;
}

.toast.error {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF0000 100%);
    color: #FFFFFF;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 2026 Trending Badge */
.trending-2026-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 700;
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}
