:root {
    --border-radius: 0.75rem;
    --card-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Log Window Styles */
.log-window {
    background-color: #1e1e1e;
    border-radius: var(--border-radius);
    border: 1px solid var(--bs-border-color);
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.log-header {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color);
}

.log-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #ffffff;
    background-color: #1e1e1e;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.log-content .log-line {
    margin: 0;
    padding: 2px 0;
    line-height: 1.4;
}

.log-content .log-info {
    color: #4ec9b0;
}

.log-content .log-warning {
    color: #ce9178;
}

.log-content .log-error {
    color: #f44747;
}

.log-content .log-success {
    color: #6a9955;
}

.card {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--bs-border-color);
    transition: transform 0.2s ease-in-out;
}

.card-header {
    border-top-left-radius: calc(var(--border-radius) - 1px);
    border-top-right-radius: calc(var(--border-radius) - 1px);
    background-color: var(--bs-dark);
    border-bottom: 1px solid var(--bs-border-color);
}

.login-card {
    backdrop-filter: blur(10px);
    background: rgba(var(--bs-dark-rgb), 0.95);
}

.login-card .card-header {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-text-emphasis));
}

.list-group-item {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: var(--bs-dark-bg-subtle);
}

.list-group-item small {
    color: var(--bs-secondary);
}

.alert {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.navbar {
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    backdrop-filter: blur(10px);
    background: rgba(var(--bs-dark-rgb), 0.95) !important;
}

.form-control, .form-select {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
    color: var(--bs-light);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bs-dark);
    border-color: var(--bs-primary);
    color: var(--bs-light);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.input-group-text {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
    color: var(--bs-light);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.15) !important;
}

.shadow-lg {
    box-shadow: var(--card-shadow) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-text-emphasis)) !important;
}

.progress {
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.btn {
    transition: all 0.2s ease-in-out;
    border-radius: calc(var(--border-radius) / 2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-text-emphasis));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
}

/* Icon styles */
.bi {
    vertical-align: -0.125em;
}

.card-header .bi {
    opacity: 0.9;
}

/* Add custom styles here */

body {
    /* Add global styles if needed */
}

/* Style the logo SVG in the navbar to appear light */
.navbar-brand img[src$='logo.svg'] {
    filter: invert(90%) sepia(10%) saturate(150%) hue-rotate(180deg) brightness(150%) contrast(90%);
    /* This filter attempts to make a dark icon light gray/white-ish */
    /* You might need to adjust these values for the best result */
}

/* 通知系统样式 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px;
    border-left: 4px solid;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: #495057;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-close:hover {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.05);
}

.notification-message {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: currentColor;
    width: 100%;
    transform: translateX(-100%);
    transition: transform linear;
}

.notification.success .notification-progress-bar {
    background: #28a745;
}

.notification.error .notification-progress-bar {
    background: #dc3545;
}

.notification.warning .notification-progress-bar {
    background: #ffc107;
}

.notification.info .notification-progress-bar {
    background: #17a2b8;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        margin-bottom: 8px;
        padding: 12px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* Example: Add other custom styles below */