/* Global Styles */
html {
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

body {
    margin: 0;
    padding-bottom: 60px;
    background-color: #f9f9f9;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Containers */
.page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Headers */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

h1, h2, h3, h4, h5 {
    margin-top: 0;
    color: #2c3e50;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Important for width: 100% */
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

.btn-primary { background-color: #007bff; color: white; border-color: #007bff; }
.btn-secondary { background-color: #6c757d; color: white; border-color: #6c757d; }
.btn-success { background-color: #28a745; color: white; border-color: #28a745; }
.btn-danger { background-color: #dc3545; color: white; border-color: #dc3545; }

.btn-outline-primary { color: #007bff; border-color: #007bff; background: transparent; }
.btn-outline-primary:hover { background-color: #007bff; color: white; }

.btn-outline-danger { color: #dc3545; border-color: #dc3545; background: transparent; }
.btn-outline-danger:hover { background-color: #dc3545; color: white; }

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* Lists & Cards */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.list-group-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Avatars */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    background-color: #007bff;
}

/* Alerts */
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.alert-danger { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-info { background-color: #d1ecf1; color: #0c5460; border-color: #bee5eb; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.mb-3 { margin-bottom: 15px; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 10px; }
.text-muted { color: #6c757d; }

/* Navigation */
.nav-links {
    list-style: none;
    padding: 0;
}
.nav-links li {
    margin-bottom: 10px;
}
.nav-links a {
    display: block;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
}
.nav-links a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Card Grid for Avatars/Users */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    text-align: center;
}
