/* Base styles */
body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

#admin {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo */
#logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 4px;
}

#logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 300;
}

h2 {
    font-size: 1.8em;
    color: #34495e;
    margin: 30px 0 15px;
    font-weight: 400;
}

h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 20px 0 10px;
    font-weight: 400;
}

p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
}

/* Links */
a {
    color: #2563eb; /* Darker blue for better contrast */
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

a:focus {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
    text-decoration: underline;
}

a:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

/* Sections */
section {
    margin: 30px 0;
    padding: 20px 0;
    background: #fff;
    border-radius: 4px;
}

/* Lists */
ul {
    margin: 15px 0;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-break: break-word;
    max-width: 300px;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        white-space: normal;
        min-width: 160px;
        max-width: none;
    }

    td {
        word-break: break-word;
    }
}

/* Forms */
form {
    margin: 20px 0;
}

input[type="submit"],
.bnBlue,
.bnGreen,
.bnRed {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin: 5px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
}

.bnBlue {
    background-color: #2563eb;
    color: white;
}

.bnBlue:hover {
    background-color: #1d4ed8;
}

.bnBlue:focus {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

.bnGreen {
    background-color: #059669;
    color: white;
}

.bnGreen:hover {
    background-color: #047857;
}

.bnGreen:focus {
    outline: 3px solid #34d399;
    outline-offset: 2px;
}

.bnRed {
    background-color: #dc2626;
    color: white;
}

.bnRed:hover {
    background-color: #b91c1c;
}

.bnRed:focus {
    outline: 3px solid #f87171;
    outline-offset: 2px;
}

input[type="email"].bnText {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    margin-right: 10px;
}

/* Helper Classes */
.floatLeft {
    float: left;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

strong {
    font-weight: 600;
}

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

    #admin {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    input[type="email"].bnText {
        width: 100%;
        margin-bottom: 10px;
    }

    .floatLeft {
        float: none;
    }

    input[type="submit"],
    .bnBlue,
    .bnGreen,
    .bnRed {
        width: 100%;
        margin: 5px 0;
        padding: 15px 10px;
    }
}
