/* Global Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Login Page Background */
.login-container {
    background-color: #1c19c4;  /* Set login background to orange */
    min-height: 100vh;  /* Ensure it covers full screen */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container .container {
    background-color: white;  /* Keep the form background white */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Styling for the login page title */
.login-title {
    color: #08396d; /* This is a blue color */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* General Container */
.container {
    max-width: 800px;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    color: #333;
}

h2 {
    font-size: 1.8rem;
    margin-top: 20px;
    color: #007bff;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background-color: #f9f9f9;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

ul li:hover {
    background-color: #f1f1f1;
}

form {
    margin-top: 20px;
}

input, select, textarea {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Ensure the logout button looks like a normal link and is visible */
button.btn-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.2rem;
    color: white;  /* Ensure the button is visible */
    cursor: pointer;
    text-decoration: underline;
}

button.btn-link:hover {
    color: #FF4500;  /* Make the hover color orange */
}

/* Button Colors */
.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

/* Ensure the form inside nav behaves like other nav items */
nav form {
    display: inline;
    margin-left: 10px;
}

/* Navigation Styling */
nav {
    background-color: #007bff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: 1.2rem;
}

nav a:hover, nav button.btn-link:hover {
    background-color: #0056b3;
    color: #fff;
    border-radius: 5px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Alerts or messages */
.alert {
    padding: 15px;
    background-color: #f44336;
    color: white;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert.success {
    background-color: #4CAF50;
}

.alert.info {
    background-color: #2196F3;
}

.alert.warning {
    background-color: #ff9800;
}

/* Section styling */
.section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.rate-history-container {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0c63e4;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.table td {
    vertical-align: middle;
}

.text-danger {
    text-decoration: line-through;
}

/* ========================================
   RemoteLock User Guide Styles
   ======================================== */
/* Scoped to #remotelock-guide to avoid conflicts with navigation */
#remotelock-guide .guide-gradient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

#remotelock-guide .guide-step-circle {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* ========================================
   Credit Card Auto-Charge Indicator
   ======================================== */
/* Green dot shown next to student names who have authorized credit card auto-charge */
.cc-authorized-dot {
    color: #28a745; /* Bootstrap success green */
    font-size: 1.2em;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* For Select2 dropdowns - slightly smaller */
.select2-results .cc-authorized-dot,
.select2-selection .cc-authorized-dot {
    font-size: 1em;
    margin-right: 3px;
}