body {
    font-family: Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.logo {
    margin-right: 20px;
    max-height: 60px;
}
nav {
    margin-bottom: 20px;
    padding: 10px 10px 0;
    background-color: #f0f0f0;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid #ccc;
}
nav a {
    margin-right: 5px;
    text-decoration: none;
    color: #333;
    padding: 6px 12px;
    display: inline-block;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-bottom: -2px;
}
.nav-search {
    float: right;
    margin-bottom: -2px;
    padding: 4px 0;
}
.nav-search input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    width: 150px;
}
.nav-search input:focus {
    outline: none;
    border-color: #007bff;
}
#searchCount {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
}
mark.search-highlight {
    background-color: #fff59d;
    padding: 0;
    border-radius: 2px;
}
.rn-match-preview {
    margin-top: 4px;
    padding: 4px 8px;
    background-color: #f5f5f5;
    border-left: 3px solid #fff59d;
    font-size: 0.85em;
    color: #555;
    white-space: normal;
    word-break: break-word;
}
.rn-match-label {
    font-weight: bold;
    color: #888;
}
nav a:hover {
    background-color: #e8e8e8;
}
nav a.active {
    background-color: white;
    border-color: #ccc;
    font-weight: bold;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: -2px;
}

.dropdown-toggle {
    cursor: pointer;
    color: #333;
    padding: 6px 12px;
    display: inline-block;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: transparent;
}

.dropdown-toggle:hover {
    background-color: #e8e8e8;
}
.dropdown.active .dropdown-toggle {
    background-color: white;
    border: 1px solid #ccc;
    border-bottom: none;
    font-weight: bold;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    margin: 0;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}
.dropdown-menu a.active {
    font-weight: bold;
    background-color: #e8e8e8;
}

.dropdown-menu form {
    margin: 0;
}

.dropdown-menu button {
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
}

.dropdown-menu button:hover {
    background-color: #f0f0f0;
}
.flash-messages {
    margin-bottom: 15px;
}

.flash-messages p {
    padding: 10px;
    margin: 0 0 10px 0;
    border-radius: 4px;
}

.flash-messages p:last-child {
    margin-bottom: 0;
}

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

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

.flash-messages .warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.flash-messages .info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

form {
    margin-bottom: 20px;
}
form div {
    margin-bottom: 10px;
}
.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}
.role-admin {
    background-color: #ff8080;
    color: #721c24;
}
.role-staff {
    background-color: #80b3ff;
    color: #004085;
}
.role-user {
    background-color: #80ff80;
    color: #155724;
}
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
}
.software-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f9f9f9;
}
.software-card h3 {
    margin-top: 0;
}
.software-card p {
    margin-bottom: 10px;
}
.product-section {
    margin-bottom: 30px;
}
.product-header {
    background-color: #e9ecef;
    padding: 0px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.permissions-list {
    list-style-type: none;
    padding: 0;
}
.permissions-list li {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}
.software-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}
.software-link:hover {
    background-color: #0069d9;
}
.debug-info {
    margin-top: 30px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    display: none; /* Do not display debug elements */
}

.software-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.software-table th,
.software-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    width: 50;
}

.software-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.software-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.software-table tr:hover {
    background-color: #e6f2ff;
}

/* Custom confirmation modal */
.confirm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.confirm-modal {
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    text-align: center;
}

.confirm-modal p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.confirm-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirm-modal-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.confirm-modal-buttons .confirm-yes {
    background-color: #dc3545;
    color: white;
}

.confirm-modal-buttons .confirm-yes:hover {
    background-color: #c82333;
}

.confirm-modal-buttons .confirm-no {
    background-color: #6c757d;
    color: white;
}

.confirm-modal-buttons .confirm-no:hover {
    background-color: #5a6268;
}
