/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #2c3e50;
}

.content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 1200px;
}

/* Headers */
h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
}

th {
    background: #3498db;
    color: #fff;
    padding: 1rem;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f8f9fa;
}

/* Buttons and Links */
.button, button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover, button:hover {
    background: #2980b9;
    text-decoration: none;
}

.button.float-right {
    float: right;
    margin-bottom: 1rem;
}

/* Action Links */
.actions a, .actions form {
    display: inline-block;
    margin-right: 0.5rem;
}

a.failover {
    background: #e74c3c;
}

a.restore {
    background: #27ae60;
}

a.status {
    background: #f1c40f;
    color: #2c3e50;
}

/* Forms */
fieldset {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

legend {
    padding: 0 0.5rem;
    color: #3498db;
    font-weight: bold;
}

.input {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

/* Flash Messages */
.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Status Indicators */
.status-normal {
    color: #27ae60;
}

.status-failed {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
        margin: 1rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .button.float-right {
        float: none;
        display: block;
        margin-bottom: 1rem;
    }
} 