/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    color: #666;
}

/* Tiles Container */
.tiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 1rem;
}

.tile {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 250px;
    text-align: center;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.tile img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.tile h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tile p {
    font-size: 0.9rem;
    color: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .tiles-container {
        flex-direction: column;
        align-items: center;
    }
}

.input-tile h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

/* Align all labels and inputs consistently */
.input-tile label {
    display: block;
    margin: 0.8rem 0 0.2rem 0;
    font-weight: bold;
    font-size: 0.95rem;
    color: #555;
}

.input-tile input[type="file"],
.input-tile select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.input-tile input[type="file"] {
    cursor: pointer;
}

/* Center the button and make it full width for small screens */
.input-tile button {
    display: block;
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
    padding: 0.7rem;
    border-radius: 8px;
}

/* Optional: spacing for file feedback text */
#fileFeedback {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Optional: add subtle padding inside tile */
.input-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


button {
  padding: 10px 20px;
  border: none;
  background-color: #c11f2f; /* your requested color */
  color: #fff; /* keep text white */
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #a11b27; /* slightly darker for hover effect */
}


#outputCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.output-card {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tips-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e7f3ff;
    border-radius: 12px;
}

.tiles-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Inputs and Output tiles */
.tile {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
    flex: 1 1 400px; /* Responsive width */
}

/* Ensure output cards inside output tile keep spacing */
.output-card {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Tips Section inside output tile */
.tips-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e7f3ff;
    border-radius: 12px;
}

/* Responsive stacking for mobile */
@media (max-width: 768px) {
    .tiles-wrapper {
        flex-direction: column;
    }
}

.back-btn {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #0056b3;
}
