/* --- Main Resizer Container --- */
.tnpsc-resizer-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.tnpsc-card {
    background: linear-gradient(135deg, #6c5ce7, #4834d4);
    color: #fff;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(72, 52, 212, 0.3);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.tnpsc-card h2 {
    margin: 0 0 8px 0;
    font-size: 2em;
}

.tnpsc-card h2 .fas {
    margin-right: 10px;
    opacity: 0.9;
}

.tnpsc-card p {
    font-size: 1.1em;
    opacity: 0.8;
    margin: 0 0 25px 0;
}

/* --- Dimension Info Box --- */
.dimension-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dimension-info span {
    font-size: 0.9em;
}

.dimension-info .fas {
    margin-right: 8px;
    color: #a29bfe;
}

/* --- Upload Area --- */
.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.upload-content .fas {
    font-size: 3em;
    color: #a29bfe;
    margin-bottom: 15px;
}

.upload-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.upload-content p {
    margin: 0;
    font-size: 0.9em;
}

/* --- Progress & Error --- */
#progress-bar-container {
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #a29bfe, #fd79a8);
    transition: width 0.4s ease;
}

#error-message {
    background: #ff6b6b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
}

/* --- Preview & Download --- */
#preview-container {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}
#preview-container h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    opacity: 0.9;
}
#image-preview {
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    max-width: 165px;
    margin-bottom: 20px;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.download-button:hover {
    transform: translateY(-2px);
}