/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    padding: 2em 3em;
    line-height: 1.7;
}

/* Header */
.page-header {
    padding-top: 20px;
    display: flex;
    align-items: center;
    padding-bottom: 1em;
}

/* Logo link */
.logo-link {
    display: inline-block;
}

.logo {
    width: 60px;
    height: auto;
}

/* Text next to the logo */
.logo-text {
    font-family: 'Patua One', cursive;
    font-size: 2.2rem;
    color: #000;
    font-weight: bold;
    margin-left: 10px;
}

/* Contact link */
.contact-link {
    font-family: 'Patua One', cursive;
    font-size: 1.5rem;
    color: #dd127f;
    font-weight: bold;
    margin-left: auto;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #ff69b4;
    text-decoration: none; /* This removes the underline on hover */
}

/* Main Content Container */
.container {
    margin: 0 auto;
    max-width: 800px; 
}

/* Typography */
h1 {
    font-family: 'Patua One', serif;
    font-size: 3.75em;
    font-weight: bold;
    text-align: left;
    color: #10072c;
}

.subtitle {
    text-align: left;
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Link Styling */
a {
    color: #FF69B4;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Form Styles */
#bug-report-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-family: 'Patua One', serif;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #10072c;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #dd127f;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.25);
}

/* Description auto-resize */
textarea {
    resize: none; /* remove draggable resize */
    overflow: hidden;
    min-height: 120px;
    line-height: 1.5em;
}

/* Character Counter */
.char-count {
    font-size: 0.85rem;
    color: #555;
    margin-top: 4px;
    text-align: right;
}

.char-count.limit-reached {
    color: #dd127f; 
    font-weight: bold;
}

/* Severity Selector */
.severity-selector {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.severity-selector button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #f8f9fa;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    border-right: 1px solid #ccc;
}

.severity-selector button:last-child {
    border-right: none;
}

.severity-selector button.active {
    background-color: #dd127f;
    color: white;
}

.severity-selector button:not(.active):hover {
    background-color: #e9ecef;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    width: 100%;
}

input[type="file"] {
    display: none; 
}

.file-input-label {
    display: inline-block;
    width: 100%;
    padding: 12px 15px;
    border: 2px dashed #dd127f;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #dd127f;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.file-input-label:hover {
    background-color: #fff0f5;
}

.file-name-display {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* Submit Button */
#submit-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background-color: #dd127f;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#submit-btn:hover:not(:disabled) {
    background-color: #dd127f;
    transform: translateY(-2px);
}

#submit-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1.5em 1.5em;
    }

    .page-header {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        width: 45px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .contact-link {
        font-size: 1.3rem;
        margin-left: 0;
    }

    h1 {
        font-size: 2.5em;
    }
}
