/* assets/css/style.css */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    min-height: 100vh;
    padding: 20px;
}

/* Container - adjusted for portrait mode */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border: 2px solid #000000;
    padding: 30px;
    background-color: #ffffff;
    /* Prevents page extension in portrait */
    max-height: 90vh;
    overflow-y: auto;
}

/* Logo container and image - top left */
.logo-container {
    margin-bottom: 20px;
    border-bottom: 2px solid #000000;
    padding-bottom: 15px;
}

.logo {
    max-width: 120px;
    height: auto;
    display: block;
    border: none;
}

/* Headings */
h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
}

h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 15px 0;
    text-transform: uppercase;
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
}

/* Form groups - compact layout */
.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

label {
    width: 130px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

input, select {
    flex: 1;
    min-width: 200px;
    padding: 8px 10px;
    border: 2px solid #000000;
    background-color: #ffffff;
    font-size: 14px;
    color: #000000;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
}

input:focus, select:focus {
    outline: none;
    background-color: #f0f0f0;
}

/* Select dropdown styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, black 50%),
                      linear-gradient(135deg, black 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                     5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    margin: 20px 0 15px 0;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Links */
p {
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
    border-top: 2px solid #000000;
    padding-top: 15px;
}

a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
}

a:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Scrollbar styling for the container */
.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track {
    background: #ffffff;
    border-left: 2px solid #000000;
}

.container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        max-height: 95vh;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    input, select {
        width: 100%;
        min-width: 100%;
    }
    
    .logo {
        max-width: 100px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
        border-width: 1px;
    }
    
    .logo-container {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .logo {
        max-width: 80px;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    h3 {
        font-size: 16px;
        margin: 15px 0 10px 0;
    }
    
    label {
        font-size: 12px;
    }
    
    input, select {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Landscape orientation specific */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .container {
        max-height: 85vh;
    }
    
    body {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    input, select {
        padding: 5px 8px;
    }
}