/* Enhanced System Information Styles */

.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-card {
    background-color: var(--cyber-dark-alt);
    border: 1px solid var(--cyber-accent);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.info-card h4 {
    color: var(--cyber-accent);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.info-card h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--cyber-accent), transparent);
    margin-left: 10px;
}

/* Status indicators */
.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.badge-warning {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.badge-info {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.badge-danger {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* System actions */
.system-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* URL display */
.url-display {
    display: flex;
    margin: 10px 0;
    align-items: center;
}

.url-display input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--cyber-accent);
    background-color: var(--cyber-dark);
    color: var(--cyber-text);
    border-radius: 4px 0 0 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.url-display button {
    border-radius: 0 4px 4px 0;
}

/* Registration toggle */
.registration-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--cyber-accent);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--cyber-accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Database stats */
.db-stats {
    margin-bottom: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--cyber-text-dim);
}

.stat-value {
    font-weight: 500;
}

.db-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Quick links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.quick-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    width: 100%;
}

.quick-links .icon {
    font-size: 1.1rem;
}

/* Notification styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    padding: 15px;
    border-radius: 5px;
    background-color: var(--cyber-dark-alt);
    border-left: 4px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: notificationSlideIn 0.3s ease-in-out;
}

.notification-info {
    border-left-color: #3498db;
}

.notification-success {
    border-left-color: #2ecc71;
}

.notification-warning {
    border-left-color: #f1c40f;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-content {
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--cyber-text);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

.notification-fadeout {
    animation: notificationFadeOut 0.3s ease-in-out forwards;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notificationFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .system-info {
        grid-template-columns: 1fr;
    }
    
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}