body {
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

.btn-primary {
    padding: 8px 20px;
}

#credentialsResult {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
}

.group-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

.user-item {
    background-color: #f8f9fa;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 5px 0;
    display: grid;
    grid-template-columns: 160px 1fr auto auto;
    align-items: center;
    gap: 10px;
}

.user-item span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-item .user-note-input {
    width: 100%;
    min-width: 80px;
    max-width: 300px;
}

.user-item .save-note-btn, .user-item .delete-btn {
    flex-shrink: 0;
    width: auto;
}

.delete-btn {
    color: #dc3545;
    cursor: pointer;
    padding: 5px 10px;
    border: none;
    background: none;
}

.delete-btn:hover {
    color: #c82333;
}

.view-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-group-form {
    background: #e9f5ff;
    border: 2px solid #0d6efd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

.edit-group-form .form-group {
    margin-bottom: 12px;
}

.edit-group-form label {
    font-weight: 500;
    color: #0d6efd;
    margin-bottom: 4px;
    display: block;
}

.edit-group-form .form-control-sm {
    margin-bottom: 0;
    border: 1.5px solid #0d6efd;
    background: #fff;
    color: #222;
    font-size: 1rem;
    border-radius: 5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-group-form .form-control-sm:focus {
    border-color: #0a58ca;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.18);
    background: #f0f8ff;
}

.edit-group-form .btn {
    margin-right: 8px;
}

.user-note-box {
    background: #fff;
    color: #212529;
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    margin-top: 12px;
    font-size: 1.08rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    word-break: break-word;
}

#groupsSection {
    max-height: 1000px;
    overflow: hidden;
}

/* Admin Footer Styles */
.admin-footer {
    padding: 80px 0 40px 0;
    margin-top: 60px;
    background: transparent;
}

/* Global Search Styles */
.user-item-global {
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.user-item-global:hover {
    background-color: #e9ecef;
}

.user-username-global,
.user-note-global {
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease;
}

.user-username-global:focus,
.user-note-global:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

.border-success {
    border-color: #198754 !important;
}

.border-danger {
    border-color: #dc3545 !important;
}

#globalSearchResult .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.users-list-global {
    max-height: 300px;
    overflow-y: auto;
}

.input-group-sm .form-control {
    font-size: 0.875rem;
}

.input-group-sm .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Styles for Groups Table */
#groupsTable {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#groupsTable thead th {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: #fff;
    border: none;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#groupsTable tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

#groupsTable tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}



#groupsTable .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

#groupsTable .btn-group-sm .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#groupsTable .btn-group-sm .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Table in modal */
#groupUsersList .table {
    margin-bottom: 0;
}

#groupUsersList .table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#groupUsersList .table td {
    padding: 8px 12px;
    vertical-align: middle;
}

#groupUsersList .form-control-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#groupUsersList .form-control-sm:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}



/* Responsive adjustments */
@media (max-width: 768px) {
    #groupsTable {
        font-size: 0.9rem;
    }
    
    #groupsTable thead th,
    #groupsTable tbody td {
        padding: 8px 10px;
    }
    
    #groupsTable .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
} 