/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

header p {
    font-size: 1rem;
    color: #666;
    margin: 5px 0 0;
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Controls */
label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

input[type="file"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Buttons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Cropping Section */
#crop-container {
    width: 100%;
    height: 300px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#crop-image {
    max-width: 100%;
    max-height: 100%;
}

/* Photo Preview Section */
#photo-preview {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border: 2px dashed #ddd;
    padding: 10px;
    min-height: 150px;
    border-radius: 8px;
}

#photo-preview img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    gap: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    #crop-container {
        height: 250px;
    }

    #photo-preview img {
        width: 80px;
        height: 100px;
    }

    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    #crop-container {
        height: 200px;
    }

    #photo-preview img {
        width: 60px;
        height: 80px;
    }

    button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
}