/* style.css */

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

.header {
    background-color: #004080; /* Dark blue, common for government sites */
    color: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid #f0ad4e; /* Accent color, e.g., gold/yellow */
}

.header h1 {
    margin: 0;
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
}

.header img {
    height: 40px;
    margin-right: 15px;
    vertical-align: middle;
}

/* Links */
a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    color: #003d80;
    text-decoration: underline;
}

/* Tables */
.table {
    margin-bottom: 20px;
    border-collapse: collapse; /* Ensures borders are clean */
    width: 100%;
}

.table th,
.table td {
    padding: 10px;
    border: 1px solid #ddd; /* Lighter borders for tables */
    text-align: left;
    vertical-align: middle;
}

.table th {
    background-color: #e9ecef; /* Light grey for table headers */
    font-weight: bold;
}

.table-condensed th,
.table-condensed td {
    padding: 6px;
}

.table .value {
    word-break: break-all; /* Help with long DKIM strings */
    max-width: 350px; /* Adjust as needed */
}

/* Forms */
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin-bottom: 10px;
}

textarea.form-control {
    height: auto;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #0056b3; /* Primary button color */
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004080;
    border-color: #003d80;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* Menu / Navigation */
.nav-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.nav-tabs > li {
    float: left;
    margin-bottom: -1px;
}

.nav-tabs > li > a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    padding: 10px 15px;
    color: #0056b3;
}

.nav-tabs > li > a:hover {
    border-color: #eee #eee #ddd;
    background-color: #eee;
    text-decoration: none;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #333;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}

/* Footer */
.footer {
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Login Info */
.login_info {
    font-size: 0.9em;
    color: #fff; /* White text on dark blue header */
}

.login_info a {
    color: #f0ad4e; /* Accent color for links in login info */
}

.login_info a:hover {
    color: #fff;
}

/* Hidden types toggle */
.hidden_types {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

/* Group Headers for Record List */
.record-group-header {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

/* Ensure psf library generated elements use Bootstrap classes where possible */
/* This might require modifying PHP code that generates HTML if classes are not already applied */

/* Specific overrides for psf elements if needed */
.BS_TextBox, .BS_Password, .BS_ComboBox, .BS_TextArea {
    /* These are custom classes from psf, their HTML output needs to be styled or they need to use .form-control */
    /* Assuming they render an <input> or <select> or <textarea> that can take .form-control */
}

/* Add some spacing for form elements within HtmlTable generated by psf */
table td .BS_TextBox input, 
table td .BS_Password input,
table td .BS_ComboBox select,
table td .BS_TextArea textarea {
    margin-bottom: 0; /* Remove bottom margin if they are inside table cells */
}




/* Large textarea for DKIM records */
.large-textarea {
    min-height: 150px;
    width: 100%;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all; /* Help with long DKIM strings */
}
