/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    background-color: #292c33;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #FFA500;
}

/* Flexbox and containers */
.flex-center {
    width: 100%;
    height: auto;
    min-height: 100%;
    position: relative;
    overflow-y: auto;
    text-align: center;
}

.main-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    height: auto;
}

.container {
    flex: 1;
    padding: 20px;
    background-color: #363a42;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tagline {
    font-size: 24pt;
    color: #FFA500;
    margin: 1rem 0;
}

/* Content sections */
.content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    height: auto;
}

.why-section {
    flex: 1;
    padding: 20px;
    background-color: #363a42;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.why-content {
    font-size: 14pt;
    line-height: 1.6;
    color: #FFA500;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-content p {
    margin-bottom: 1.5rem;
}

.login-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-section .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.cta-text {
    color: #FFA500;
    margin: 1.5rem 0 0.5rem 0;
    text-align: center;
}

/* Form elements */
form {
    display: flex;
    flex-direction: column;
}

input[type="text"], 
input[type="password"], 
select, 
input[type="submit"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 10px auto;
    display: block;
    border: 1px solid #666;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #363a42;
    color: #FFA500;
}

input[type="button"] {
    width: 100px;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #666;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #363a42;
    color: #FFA500;
}

input[type="submit"]:hover {
    background-color: #FF8C00;
    color: #363a42;
}

textarea {
    width: 300px;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #666;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #363a42;
    color: #FFA500;
}

/* Links */
a {
    color: #FFA500;
    text-decoration: none;
    font-size: 12pt;
}

a:hover {
    text-decoration: underline;
}

/* Tables */
#adminstatus {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    padding: 4px;
    color: #FFA500;
}

#adminstatus td, 
#adminstatus th {
    border: 1px solid #555;
    padding: 4px;
}

#adminstatus tr:nth-child(even) {
    background-color: #363a42;
}

#adminstatus tr:hover {
    background-color: #444;
}

#adminstatus th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #FFA500;
    color: #FFA500;
}

.table-responsive {
    overflow-x: auto;
}

/* Utility classes */
.error {
    color: #FFA500;
}

.column {
    float: left;
    width: 50%;
    padding: 10px;
    height: 300px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Media queries */
@media screen and (max-width: 1024px) {
    .main-container {
        padding: 1rem;
        min-height: auto;
        height: auto;
    }
    
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .why-section, 
    .login-section {
        width: 100%;
        max-width: 600px;
    }

    .header img {
        width: 100%;
        max-width: 300px;
    }

    .why-section {
        margin-top: 1rem;
    }

    .flex-center {
        height: auto;
        min-height: 100%;
        position: relative;
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #555;
    }
    
    .table-responsive > table {
        margin-bottom: 0;
    }
}