/* Tool-specific styles only - base styles are in tool-layout.css */

.tool-main {
    margin-top: 60px;
}

.frame-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.frame-style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #141414;
    border: 2px solid #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 150ms ease;
}

.frame-style-option:hover {
    border-color: #6b7280;
    background: #1a1a1a;
}

.frame-style-option.active {
    border-color: #3b82f6;
    background: #1e3a5f;
}

.frame-style-option span {
    font-size: 13px;
    color: #d1d5db;
    font-weight: 500;
}

.frame-style-preview {
    width: 60px;
    height: 72px;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}

.frame-style-preview::before {
    content: '';
    width: 48px;
    height: 40px;
    background: #6b7280;
    border-radius: 1px;
}

.frame-style-preview::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    border-radius: 1px;
}

.classic-white-preview {
}

.classic-white-preview::after {
    background: #9ca3af;
}

.vintage-cream-preview {
}

.vintage-cream-preview::after {
    background: #a89f8f;
}

.black-preview {
    background: #1a1a1a;
    border: 1px solid #374151;
}

.black-preview::after {
    background: #6b7280;
}

#caption-input {
    font-size: 15px;
    padding: 12px 16px;
}

#caption-input::placeholder {
    font-style: italic;
    color: #6b7280;
}

.select-input {
    width: 100%;
    padding: 12px 16px;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.select-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-input option {
    background: #1a1a1a;
    color: #e5e7eb;
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f0f0f;
    border-radius: 8px;
    padding: 24px;
    min-height: 300px;
}

#preview-canvas {
    max-width: 100%;
    max-height: 500px;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.render-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #374151;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-size: 14px;
    color: #9ca3af;
}

.result-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px;
    background: #141414;
    border-radius: 6px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
}

.download-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.button-download {
    flex: 1;
    padding: 14px 24px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease;
}

@media (max-width: 768px) {
    .frame-style-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .frame-style-option {
        padding: 12px 8px;
    }

    .frame-style-preview {
        width: 50px;
        height: 60px;
    }

    .frame-style-preview::before {
        width: 40px;
        height: 32px;
    }

    .result-info {
        gap: 16px;
    }

    .download-actions {
        flex-direction: column;
    }
}