/* Basic Reset and Body Styling 
Purpose: Makes everything look beautiful */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container for the Form */
.container {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 25px;
}

.form-group > label:first-child {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

/* Text Input and Select Styling */
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Toggle Switch Styling (from W3Schools) */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #667eea;
}

input:focus + .slider {
    box-shadow: 0 0 1px #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Submit Button Styling */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #764ba2;
}

/* Output Area Styling */
.output {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    display: none;
}

.output.show {
    display: block;
}

.output h3 {
    color: #333;
    margin-bottom: 10px;
}

.output p {
    color: #666;
    margin: 5px 0;
}

/* Orientation Output Styling */
.orientation-output {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f4f8;
    border-radius: 5px;
    border-left: 4px solid #2196F3;
}

.orientation-output h3 {
    color: #333;
    margin-bottom: 15px;
}

.orientation-output .status {
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
}

.orientation-output #orientation-status {
    color: #2196F3;
}

.orientation-output #orientation-status.active {
    color: #4CAF50;
}

.orientation-output #orientation-status.error {
    color: #f44336;
}

.orientation-data {
    background: white;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.orientation-data p {
    margin: 8px 0;
    color: #333;
}

.orientation-data span {
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}
