/* Manifest Generator Styling */

/* Output Textarea */
.manifest-output {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

[data-bs-theme="dark"] .manifest-output {
    background-color: #212529;
    border-color: #495057;
    color: #e9ecef;
}

/* Icon and Screenshot Entries */
.icon-entry,
.screenshot-entry {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

[data-bs-theme="dark"] .icon-entry,
[data-bs-theme="dark"] .screenshot-entry {
    background-color: #1a1d23;
    border-color: #343a40;
}

.icon-entry .card-body,
.screenshot-entry .card-body {
    padding: 12px;
}

/* Color Picker Styling */
.form-control-color {
    width: 56px;
    height: 38px;
    padding: 4px;
}

/* Small Form Controls */
.form-control-sm,
.form-select-sm {
    font-size: 0.875rem;
}

/* Remove Button in Icon/Screenshot */
.icon-entry .btn-danger,
.screenshot-entry .btn-danger {
    padding: 4px 8px;
}

/* Filter SVG for white icons */


/* Card Headers */
.card-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Text in Dark Mode */
[data-bs-theme="dark"] .form-text {
    color: #9ca3af;
}

/* Input Group for Colors */
.input-group .form-control-color {
    flex: 0 0 56px;
}

.input-group .form-control {
    flex: 1;
}

/* Button Styling */
.toolBtn {
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
}

.toolBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.toolBtn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .toolBtn {
        width: 100%;
        margin-bottom: 5px;
    }

    .form-control-color {
        width: 48px;
        height: 34px;
    }

    .icon-entry .row,
    .screenshot-entry .row {
        margin: 0;
    }

    .icon-entry .col-md-1,
    .icon-entry .col-md-2,
    .icon-entry .col-md-5,
    .screenshot-entry .col-md-1,
    .screenshot-entry .col-md-2,
    .screenshot-entry .col-md-4 {
        padding: 4px;
    }
}

/* Loading Animation */
.toolBtn.loading {
    position: relative;
    pointer-events: none;
}

.toolBtn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Focus States */
.toolInput:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Labels */
.form-label {
    font-weight: 500;
    color: #212529;
}

[data-bs-theme="dark"] .form-label {
    color: #e9ecef;
}

.form-label.small {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Required Indicator */
.form-label::after {
    content: '';
}

.form-label:has(+ input[required])::after,
label[for="appName"]::after {
    content: ' *';
    color: #dc3545;
}
