:root {
    --main-font: 'Inter', system-ui, -apple-system, sans-serif;
    --primary-color: #28a745;
    --primary-color-dark: #218838;
    --primary-color-rgb: 40, 167, 69;
}
body { 
    font-family: var(--main-font);
    margin: 0; 
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.main-content {
    padding: 20px;
    flex: 1;
}



/* Navigation styles */
.nav-container {
    background-color: #253053;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-logo img {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
    font-weight: 500;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 640px) {
    .mobile-menu-button {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #253053;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
}








/* Grid Layout Styles */
.grid-container {
    display: flex;
    flex-direction: column;
    /*gap: 1rem;*/
    width: 100%;
}

.grid-header {
    display: grid;
    /*grid-template-columns: 60px minmax(200px, 260px) minmax(120px, 160px) minmax(100px, 160px) minmax(100px, 160px) 1fr;*/
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f5f5f5;
    /*border-radius: 4px;*/
    border: 1px solid #ddd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.grid-row {
    display: grid;
    /*grid-template-columns: 60px minmax(200px, 260px) minmax(120px, 160px) minmax(100px, 160px) minmax(100px, 160px) 1fr;*/
    /*gap: 0.5rem;*/
    /*padding: 0.5rem;*/
    background: white;
    border: 1px solid #ddd;
    /*border-radius: 4px;*/
    align-items: center;
}

/* Update grid template columns - remove ID column width and add actions column */
.grid-header, .grid-row {
    grid-template-columns: 40px minmax(200px, 260px) minmax(120px, 160px) minmax(100px, 160px) minmax(100px, 160px) 1fr 40px;
}

.grid-row:nth-child(even) {
    background-color: #f8f9fa;
}

.grid-row.highlight {
    background-color: #fff8e1;
}

.grid-cell {
    /*padding: 0.5rem;*/
    padding: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-cell.id {
    font-family: 'Share Tech Mono', monospace;
    color: #666;
    text-align: right;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.grid-cell.id:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
}

.grid-cell.notes {
    white-space: normal;
    word-wrap: break-word;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .grid-header {
        display: none; /* Hide headers on mobile */
    }

    .grid-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .action-cell {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
    }

    .grid-cell {
        display: flex;
        align-items: flex-start;  /* Changed from center to flex-start */
        padding: 0.25rem 0;
        position: relative;
        width: 100%;  /* Ensure full width */
        padding-right: 70px; /* Make room for action buttons */
    }

    /* Add labels for mobile view */
    .grid-cell::before {
        content: attr(data-label);
        font-weight: 600;  /* Made labels bolder */
        width: 100px;
        min-width: 100px;
        color: #333;  /* Darkened the color */
        font-size: 0.9rem;  /* Slightly larger */
    }

    .grid-cell.id {
        text-align: left;
    }

    /* Adjust datetime container for mobile */
    .grid-cell.datetime {
        flex-wrap: wrap;
    }

    .datetime-container {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Ensure content aligns properly with label */
    .grid-cell > *:not(.datetime-container) {
        flex: 1;
    }

    /* Handle icons and text alignment */
    .grid-cell i {
        margin-right: 0.5rem;
        position: relative;
        top: 1px;  /* Slight adjustment for visual alignment */
    }

    /* Specific adjustments for the time display in card view */
    .time-display {
        margin-left: 0;  /* Remove any default margin */
    }

    .day-capsule {
        order: -1;  /* Keep day indicator first */
        margin-right: 0.5rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .grid-container {
        gap: 0.75rem;
    }

    .grid-cell::before {
        width: 90px;    /* Slightly adjusted */
        min-width: 90px;
    }

    .grid-row {
        margin-bottom: 0.5rem;
        border-radius: 6px;  /* Slightly more rounded corners */
    }

    /* Ensure notes wrap properly */
    .grid-cell.notes {
        white-space: normal;
        word-wrap: break-word;
    }
}








/* Security Indicators */
.security-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: help;
}

.security-icon i {
    margin: 0; /* Override default icon margin */
}

/* Security icon colors */
.security-icon.proxy { 
    background-color: #ffc107;
    color: #000; 
}
.security-icon.tor { 
    background-color: #dc3545;
    color: #fff; 
}
.security-icon.cloud { 
    background-color: #0dcaf0;
    color: #000; 
}
.security-icon.threat { 
    background-color: #dc3545;
    color: #fff; 
}
.security-icon.spam { 
    background-color: #fd7e14;
    color: #fff; 
}
.security-icon.bot { 
    background-color: #6c757d;
    color: #fff; 
}

.threat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    background-color: #f8d7da;
    color: #721c24;
}

/* Expandable Details */
.details-panel {
    grid-column: 1 / -1;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.details-section {
    padding: 1rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.details-section h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-section h4 i {
    opacity: 0.7;
}

.security-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

.security-item.active {
    background-color: #d4edda;
    color: #155724;
}

/* Action buttons styling */
.action-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-expand,
.btn-edit {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.btn-expand:hover,
.btn-edit:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.btn-edit:hover {
    color: #4CAF50;
}

.btn-expand i {
    transition: transform 0.2s;
}

.btn-expand.expanded i {
    transform: rotate(180deg);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .security-indicators {
        margin-left: 100px; /* Aligns with your mobile layout */
    }
    
    .details-panel {
        margin: 0 -1rem; /* Full width on mobile */
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}




























/* Table styles */
table { 
    width: 100%; 
    border-collapse: collapse;
    table-layout: fixed;
}

th {
    font-weight: 500;
    background-color: #f5f5f5;
    padding: 8px 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Column width specifications */
th:nth-child(1), td:nth-child(1) { width: 60px; }  /* ID column */
th:nth-child(2), td:nth-child(1) { width: 260px; } /* DateTime column */
th:nth-child(3), td:nth-child(2) { width: 160px; } /* IP Address column */
th:nth-child(4), td:nth-child(3) { width: 160px; } /* OS column */
th:nth-child(5), td:nth-child(4) { width: 160px; } /* Browser column */
th:nth-child(6), td:nth-child(5) { width: auto; }   /* Notes column - takes remaining space */

th, td { 
    border: 1px solid #ddd; 
    padding: 4px 6px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td:nth-child(5) {
    white-space: normal;
    word-wrap: break-word;
}

tr:nth-child(even) { 
    background-color: #f8f9fa;
}

.highlight { 
    background-color: #fff8e1 !important;
}

/* Datetime display */
.datetime-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    white-space: nowrap;
}

.day-capsule {
    padding: 2px 4px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.8em;
    min-width: 32px;
    text-align: center;
}

.date-display {
    color: #666;
    min-width: 82px;
    font-weight: 400;
}

.time-display {
    font-family: 'Share Tech Mono', monospace;
    background: #ffffff;
    color: #b90e0a;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    border: 1px solid #bbbbbb;
    min-width: 85px; /* Fixed width for consistent alignment */
}

/* styles for edit mode indicator */
.edit-success {
    background-color: #4caf50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.edit-error {
    background-color: #f44336;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ID column styling */
.id-column {
    text-align: right;
    font-family: 'Share Tech Mono', monospace;
    color: #666;
    padding-right: 8px !important;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.id-column:hover {
    background-color: #f5f5f5;
}


/* Status message styles */
.status-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-success {
    background-color: #4caf50;
    color: white;
}

.status-error {
    background-color: #f44336;
    color: white;
}

/* Add styles for action links */
.action-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    margin-left: 8px;
}

.action-link:hover {
    text-decoration: underline;
}

.delete-link {
    color: #dc3545;
}

/* row actions styling */
.row-actions {
    display: none;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.action-link {
    color: #666;
    text-decoration: none;
    margin-left: 4px;
}

.action-link:hover {
    color: #333;
}

/* Header layout styles */
.header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 1200px;
    min-width: 1200px;
    margin-left: auto; 
    margin-right: auto;
}

.ip-section {
    margin-bottom: 1rem;
}
/*
.ip-address {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}
*/
.ip-nickname {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
}

.ip-address {
    font-size: 0.9em;
    color: #666;
    margin-left: 0.5em;
}

.info-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* Pills Styling */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    gap: 0.5rem;
    background: #f8f9fa;
    color: #495057;
    white-space: nowrap;
}

.pill.datetime { background: #e8f5e9; color: #2e7d32; }
.pill.location { background: #e3f2fd; color: #1976d2; }
.pill.isp { background: #f3e5f5; color: #7b1fa2; }
.pill.system { background: #fff3e0; color: #ef6c00; }

/* Network info pills */
.pill.network {
    background: #f8f9fa;
    color: #495057;
    font-size: 0.85rem;
}

.pill.network .label {
    color: #6c757d;
    font-weight: 500;
    margin-right: 0.25rem;
}

/* System icons pill */
.pill.system-icons {
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 0.4rem 0.6rem;
}

.pill.system-icons i {
    font-size: 1.1rem;
    margin: 0 0.2rem;
}

/* Native OS/Browser icon colors */
.fa-windows { color: #00a4ef !important; }
.fa-apple { color: #666666 !important; }
.fa-linux { color: #333333 !important; }
.fa-ubuntu { color: #e95420 !important; }
.fa-android { color: #3ddc84 !important; }
.fa-chrome { color: #4285f4 !important; }
.fa-firefox-browser { color: #ff9500 !important; }
.fa-edge { color: #0078d7 !important; }
.fa-safari { color: #006CFF !important; }
.fa-opera { color: #ff1b2d !important; }

/* Security indicators pill */
.pill.security-indicators {
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 0.4rem 0.8rem;
    gap: 0.6rem;
    display: inline-flex;
    align-items: center;
}

/* Base security icon styles */
.security-indicators i,
.security-row i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

/* Inactive icon colors */
.security-indicators i {
    color: #e9ecef;  /* Light gray for header icons */
}

.security-row i {
    color: #495057;  /* Default text color for log entries */
}

/* Active icon styles */
.security-indicators i.active,
.security-row i.active {
    cursor: help;
}

/* Common colors for both header and log entries */
.security-indicators i.fa-user-secret.active,
.security-row i.fa-user-secret.active { color: #dc3545; }  /* TOR Network */

.security-indicators i.fa-server.active,
.security-row i.fa-server.active { color: #fd7e14; }      /* Proxy */

.security-indicators i.fa-mask.active,
.security-row i.fa-mask.active { color: #6f42c1; }        /* Anonymous */

.security-indicators i.fa-shield-halved.active,
.security-row i.fa-shield-halved.active { color: #0dcaf0; } /* Proxy Type */

.security-indicators i.fa-skull.active,
.security-row i.fa-skull.active { color: #dc3545; }       /* Known Attacker */

.security-indicators i.fa-envelope.active,
.security-row i.fa-envelope.active { color: #ffc107; }    /* Spam */

.security-indicators i.fa-robot.active,
.security-row i.fa-robot.active { color: #6f42c1; }       /* Bot */

.security-indicators i.fa-cloud.active,
.security-row i.fa-cloud.active { color: #0dcaf0; }       /* Cloud Provider */

/* Threat score styling */
.security-indicators .threat-score {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding-right: 0.75rem;
    margin-right: 0.5rem;
    border-right: 1px solid #e9ecef;
}

.threat-score.critical { color: #dc3545; }
.threat-score.high { color: #fd7e14; }
.threat-score.medium { color: #ffc107; }
.threat-score.low { color: #198754; }

/* Header grid layout */
.header-grid {
    display: grid;
    grid-template-columns: minmax(auto, 600px) 250px; /* Reduced widths */
    gap: 1rem; /* Reduced gap further */
    align-items: start;
}

/* System info side */
.system-info {
    min-width: 0;
    padding-right: 0.5rem; /* Reduced padding */
}

/* Log form side */
.log-form {
    position: sticky;
    top: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 250px; /* Fixed width */
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#logIpForm textarea {
    width: 100%;
    height: 120px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
}

#logIpForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.log-ip-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.log-ip-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.log-ip-button:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .log-form {
        position: static;
    }
}

/* Log entries container */
.logs-container {
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual log entry */
.log-entry {
    background: white;
    border-radius: 8px;
    padding: .5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 250px 350px 300px 1fr auto;
    gap: 1.5rem;
    align-items: start;
    transition: all 0.2s ease;
    min-width: 1200px; /* Match header width */
}

.log-entry:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.log-entry.highlight {
    border-left: 3px solid var(--primary-color);
}

/* Time and IP Column */
.entry-primary {
    display: flex;
    flex-direction: column;
    /*gap: 0.5rem;*/
}

.entry-datetime {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    align-items: center;
}

.entry-datetime .date {
    font-weight: 500;
    color: #495057;
}

.entry-datetime .time {
    font-size: 0.85rem;
}

.entry-ip-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/*
.entry-ip-info .ip {
    font-size: 0.95rem;
    color: var(--primary-color);
}
*/
.entry-ip-info .system-icons {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Location and Network Column */
.entry-location {
    display: flex;
    flex-direction: column;
    /*gap: 0.75rem;*/
    font-size: 0.9rem;
}

.location-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976d2;
}

.location-text i {
    font-size: 0.85rem;
}

.network-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.network-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.network-item i {
    width: 16px;
    color: #495057;
}

/* Security Column */
.entry-security {
    display: flex;
    flex-direction: column;
    /*gap: 0.75rem;*/
}

.security-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 1.5rem; /* Ensure consistent height even when empty */
}

.security-row i {
    font-size: 1rem;
    color: #e9ecef;
    transition: all 0.2s ease;
}

.security-row i.active {
    cursor: help;
}

/* Use the same colors as in the header for active security icons */
.security-row i.fa-user-secret.active { color: #dc3545; }  /* TOR/Anonymous */
.security-row i.fa-mask.active { color: #fd7e14; }        /* Proxy */
.security-row i.fa-shield-halved.active { color: #0dcaf0; } /* Proxy Type */
.security-row i.fa-skull.active { color: #dc3545; }       /* Known Attacker */
.security-row i.fa-envelope.active { color: #ffc107; }    /* Spam */
.security-row i.fa-robot.active { color: #6f42c1; }       /* Bot */
.security-row i.fa-cloud.active { color: #0dcaf0; }       /* Cloud Provider */

/* Notes Column */
.entry-notes {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

.notes-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions Column */
.entry-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.log-entry:hover .entry-actions {
    opacity: 1;
}

.btn-edit {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: #f8f9fa;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .log-entry {
        grid-template-columns: 180px 250px 220px 1fr auto;
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .log-entry {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .entry-actions {
        opacity: 1;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .entry-location, .entry-security {
        border-top: 1px solid #eee;
        padding-top: 1rem;
    }
}

.security-divider {
    width: 1px;
    height: 1.2rem;
    background-color: #e9ecef;
    margin: 0 0.5rem;
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form textarea {
    width: 100%;
    height: 120px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.modal-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.update-button {
    background: var(--primary-color);
    color: white;
}

.update-button:hover {
    background: var(--primary-color-dark);
}

.delete-button {
    background: #dc3545;
    color: white;
}

.delete-button:hover {
    background: #c82333;
}

.ip-nickname {
    color: var(--primary-color);
    font-weight: 500;
    display: block;
}

.ip-address {
    color: #666;
    font-size: 0.9em;
    display: block;
}

.entry-ip-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.system-icons {
    margin-top: 0.25rem;
}

.ip-info-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ip-nickname {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.2;
}

.ip-address-small {
    font-size: 0.85rem;
    color: #666;
}

.ip {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.2;
}

.current-ip-info {
    display: flex;
    align-items: baseline;  /* Aligns text by their baselines */
    gap: 0.5rem;  /* Space between nickname and IP */
}

.current-ip-nickname {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.current-ip-address {
    font-size: 1.2rem;  /* Slightly smaller than nickname */
    color: #666;
}

.current-ip {
    font-size: 1.5rem;
    color: #333;
}





























