/* Trident Web Interface Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    padding: 0 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-title a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Navigation simplified - single page app */

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Status Bar */
.status-bar {
    margin-bottom: 1rem;
    height: 30px;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.status.success {
    background-color: #4CAF50;
    color: white;
}

.status.error {
    background-color: #f44336;
    color: white;
}

/* Dashboard */
.dashboard {
    min-height: 80vh;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1.5rem;
}

.overview-card h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Database Overview Styles */
.overview-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overview-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.stat-text {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Market Prices Styles */
.prices-overview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #404040;
}

.price-row:last-child {
    border-bottom: none;
}

.price-symbol {
    font-weight: bold;
    color: #4CAF50;
    font-size: 0.95rem;
}

.price-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.price-updated {
    color: #999;
    font-size: 0.8rem;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #404040;
}

/* Service Section */
.service-section h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.service-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    font-size: 1.2rem;
}

.status-text {
    color: #e0e0e0;
    font-weight: 500;
}

.service-info {
    background-color: #2d2d2d !important;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Force service-info background to match overview cards */
.dashboard .service-section .service-info {
    background-color: #2d2d2d !important;
}

.service-info p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}


/* Service Actions Grid */
.service-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* Add spacing between service section and logs */
.service-section {
    margin-bottom: 2rem;
}

/* Additional spacing for logs section */
.logs-section {
    margin-top: 3rem !important;
}

/* Buttons */
.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    position: relative;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.action-btn.primary,
.action-btn.secondary,
.action-btn.tertiary {
    background-color: #4CAF50;
    color: white;
}

.action-btn.primary:hover:not(:disabled),
.action-btn.secondary:hover:not(:disabled),
.action-btn.tertiary:hover:not(:disabled) {
    background-color: #45a049;
}

.btn-loading.hidden,
.btn-text.hidden {
    display: none;
}



/* Error Section */
.error-section {
    text-align: center;
    padding: 3rem;
    background-color: #2d2d2d;
    border: 1px solid #f44336;
    border-radius: 8px;
}

.error-section h2 {
    color: #f44336;
    margin-bottom: 1rem;
}

.error-message {
    color: #ff8a80;
    margin-bottom: 2rem;
    font-family: monospace;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        height: 60px; /* Keep consistent height on mobile */
    }
    
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .dashboard-cards,
    .service-actions {
        grid-template-columns: 1fr;
    }
    
    .service-control {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .dashboard-cards {
        gap: 1rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
}