/* --- Base Styles --- */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --white: #ffffff;
    --danger: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

h1, h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

/* --- Layout Containers --- */
section {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* --- Form Styling --- */
form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

form textarea {
    grid-column: span 2;
    height: 80px;
}

form button {
    grid-column: span 2;
    background-color: var(--accent-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

form button:hover {
    background-color: #2980b9;
}

/* --- Table Styling --- */
/* Table Styling for better row separation */
table {
    width: 100%;
    border-collapse: collapse; /* Merges borders into single lines */
    margin-top: 20px;
    background-color: #ffffff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0; /* Clean horizontal lines */
    border-right: 1px solid #f0f0f0;  /* Subtle vertical lines */
}

/* Zebra Striping: Different color for even rows */
tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Hover effect to highlight the current row */
tbody tr:hover {
    background-color: #f1f4f9;
}

/* Header styling */
thead th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}


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

/* --- Specialty Classes --- */
.hidden-pass {
    background: #eee;
    color: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
}

.hidden-pass:hover {
    background: transparent;
    color: var(--text-color);
}

.btn-delete {
    color: var(--danger);
    text-decoration: none;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    form { grid-template-columns: 1fr; }
    form input, form textarea, form button { grid-column: span 1; }
    table { font-size: 12px; }
}

.login-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #2980b9;
    color: white;
}

.user-info {
    font-size: 14px;
    color: var(--primary-color);
}
