/* Add these to the existing style.css */

/* Login Page Specific Styles */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.login-container .error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: calc(100% - 24px); /* Account for padding */
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.login-container button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.login-container button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.login-container button[type="submit"]:active {
    transform: translateY(0);
}

/* Basic body styling for consistent background */
body {
    background-color: #f4f7f6; /* Light grey background */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Status badges */
.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.scheduled {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.sent {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Help text */
.help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Command form */
.command-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Form improvements */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Button spacing */
.btn + .btn {
    margin-left: 0.5rem;
}

/* Basic styling for index and logout redirect pages */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.loading-container p {
    font-size: 1.2rem;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
/* Status badges */
.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.scheduled {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.sent {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Help text */
.help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Command form */
.command-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Form improvements */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Button spacing */
.btn + .btn {
    margin-left: 0.5rem;
}