/* NFT-specific styles that don't exist in base.html */
.container {
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-section {
    background: #1e293b;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

.section-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
}

.info-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #334155;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.info-icon:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.expand-icon.rotated {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-content.expanded {
    max-height: 1000px;
}

.section-description {
    background: #0f172a;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    border-left: 3px solid #3b82f6;
}

label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: block;
}

.required {
    color: #ef4444;
}

input, textarea, select {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: white;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
}

.file-upload-area {
    border: 2px dashed #334155;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background-color: #0f172a;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.file-upload-area.has-file {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.upload-btn {
    margin-top: 1rem;
    padding: 10px 20px;
    background: #8A3B12;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.upload-btn:hover {
    background: #7A3510;
    box-shadow: 0 0 8px rgba(138, 59, 18, 0.4);
    transform: translateY(-2px);
}

.property-row {
    display: flex;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
}

.property-row input {
    margin-bottom: 0;
}

.remove-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    min-width: 40px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #b91c1c;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.add-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: #047857;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.fee-breakdown {
    background: #1e293b;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid #3b82f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fee-breakdown:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.fee-breakdown h3 {
    color: #3b82f6;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.fee-total {
    border-top: 1px solid #334155;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.fee-usd {
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 5px;
}

.create-nft-section {
    background: #1e293b;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-nft-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.terms-section {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 8px 0;
}

.terms-checkbox:last-child {
    margin-bottom: 0;
}

.terms-checkbox-input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    accent-color: #3b82f6;
    cursor: pointer;
}

.terms-checkbox label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e2e8f0;
    cursor: pointer;
    margin: 0;
}

.terms-checkbox label:hover {
    color: white;
}

.create-nft-btn {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #8b5cf6, #d97706);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    min-height: 70px;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.create-nft-btn:disabled {
    background: #374151;
    cursor: not-allowed;
    color: #9ca3af;
}

.create-nft-btn:not(:disabled):hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.validation-error {
    color: #ef4444;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
    color: #10b981;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tips-section {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-left: 4px solid #3b82f6;
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns instead of 4 */
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(138, 59, 18, 0.1);
    border-left: 3px solid #8A3B12;
    border-radius: 6px;
    font-size: 0.9rem;
}

.tips-list li::before {
    content: '💡';
    flex-shrink: 0;
    font-size: 1.2rem;
}


.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: fadeInUp 0.6s ease;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1e293b;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    color: white;
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem 16px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Apply Moondraft brand colors to headings */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

h2 {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    color: #8b5cf6;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}