/* General Form Styling */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ADD8E6; /* Light blue from heroBase.css */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Heading */
h2 {
    transform: translatex(610px) translatey(0px);
    padding-top: 14px !important;
    padding-right: 0px;
    width: 282px;
    padding-bottom: 28px !important;
    text-align: center;
}

/* Label Styling */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: #000; /* Black text */
}

/* Input Fields Styling */
input[type="text"],
textarea,
select,
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: Arial, sans-serif;
    background-color: #fff; /* White background */
    color: #000; /* Black text */
    box-sizing: border-box;
}

/* Focus Styling */
input[type="text"]:focus,
textarea:focus,
select:focus,
input[type="file"]:focus {
    border-color: #3498db; /* HeroBase blue accent */
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Image Styling */
.current-image {
    display: block;
    margin: 15px 0;
    font-size: 0.9em;
    color: #000; /* Black text */
    width: 100%;
    text-align: center;
}

.current-image img {
    width: 298px; /* Fixed width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #3498db; /* HeroBase button color */
    color: #fff; /* White text */
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #2874a6; /* Darker blue on hover */
}

form img.current-image{
 overflow:visible;
 transform:translatex(0px) translatey(0px);
 min-width:260px;
 margin-bottom:0px;
 height:429px;
 padding-right:0px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Style for form input fields */
input[type="text"], input[type="file"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Makes sure padding is included in width */
}

input[type="hidden"] {
    display: none;
}

/* Add Skin Button */
#skinsTable + button {
    margin-top: 10px;
    background-color: #2196F3;
}

#skinsTable + button:hover {
    background-color: #1976D2;
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    button[type="submit"] {
        font-size: 1em;
    }

    /* Current image for small screens */
    .current-image img {
        width: 100%; /* Image scales down on smaller screens */
        max-width: 298px; /* Ensure the image does not exceed 298px width */
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }

    /* Button for small screens */
    button[type="submit"] {
        padding: 8px;
    }

    /* Add Skin Button for smaller screens */
    #skinsTable + button {
        padding: 8px;
    }
}
