/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Body */
body {
    background: #f5f7fb;
    color: #222;
    line-height: 1.6;
}

/* Header */
.header {
    background: #0b5ed7;
    color: #fff;
    text-align: center;
    padding: 25px 15px;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.header p {
    font-size: 14px;
    opacity: 0.95;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    padding: 30px 15px;
}

/* Tool Card */
.tool-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.tool-card h2 {
    text-align: center;
    margin-bottom: 5px;
}

.hint {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* Labels */
.label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    margin-top: 15px;
}

/* Inputs */
input[type="file"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Preview Box */
.preview-box {
    margin-top: 20px;
    border: 1px dashed #aaa;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.preview-box p {
    font-size: 13px;
    margin-bottom: 8px;
    color: #555;
}

.preview-box img {
    max-width: 100%;
    max-height: 220px;
    display: none;
    margin: auto;
}

/* Result */
.result {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    color: #0b5ed7;
}

/* Button */
button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #0b5ed7;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #084298;
}

/* Info Section */
.info {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

.info h3 {
    text-align: center;
    margin-bottom: 10px;
}

.info ul {
    list-style: none;
    text-align: center;
}

.info li {
    font-size: 14px;
    margin: 5px 0;
}

/* Footer */
.footer {
    background: #f1f1f1;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #555;
}

/* Mobile Friendly */
@media (max-width: 480px) {
    .tool-card {
        padding: 20px;
    }

    .header h1 {
        font-size: 26px;
    }
}
.processing {
    display: none;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #555;
}

.spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    border: 4px solid #ddd;
    border-top: 4px solid #0b5ed7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled button feel */
button:disabled {
    background: #999;
    cursor: not-allowed;
}
.preset-btn.active {
    background: #0b5ed7;
    color: #fff;
}
.presets {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.preset-column {
    flex: 1;
    text-align: center;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
}

.preset-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.preset-btn {
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    border: 1px solid #0b5ed7;
    background: #fff;
    color: #0b5ed7;
    border-radius: 4px;
    cursor: pointer;
}

.preset-btn.active {
    background: #0b5ed7;
    color: #fff;
}

/* Mobile friendly */
@media (max-width: 480px) {
    .presets {
        flex-direction: column;
    }
}
.feedback {
    background: #ffffff;
    max-width: 420px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
}

.feedback h3 { margin-bottom: 6px; }

.feedback p {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

.feedback input,
.feedback textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.feedback textarea {
    resize: vertical;
    min-height: 80px;
}

.feedback button {
    width: 100%;
    padding: 10px;
    background: #0b5ed7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.feedback button:hover { background: #084298; }

.fb-status {
    margin-top: 10px;
    font-size: 13px;
    color: green;
}
.visitor-count {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}
