/* styles.css */
body {
    font-family: 'Inter', sans-serif;
    margin: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 90vh;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 30px 20px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="file"]:focus {
    outline: none;
    border-color: #007bff;
}

.form-text {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
    display: block;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 25px;
    overflow: hidden;
    background-color: #fcfcfc;
}

.card-header {
    background-color: #e9ecef;
    padding: 12px 18px;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.card-body {
    padding: 20px;
    text-align: center;
}

#image-preview {
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 5px;
    margin: 10px auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#file-name-display {
    margin-top: 15px;
    font-style: italic;
    color: #666;
    min-height: 20px;
    word-wrap: break-word;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 25px;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    background-color: #004085;
}

.btn-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.alert-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 15px;
    text-align: center;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#results-area {
    margin-top: 25px;
    padding: 20px;
    background-color: #e9f7ef;
    border: 1px solid #d4edda;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: none;
    text-align: left;
}

#results-area h3 {
    color: #28a745;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

#results-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#results-area li {
    background-color: #f0fdf5;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05em;
    border: 1px solid #c9e9d6;
}

#results-area li strong {
    color: #0056b3;
}

#results-area li span {
    font-weight: bold;
    color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        margin: 15px;
        padding: 15px;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 15px;
    }
    #image-preview {
        max-height: 200px;
    }
}
