/* Vessels Meta Plugin Frontend Styles */

/* Override theme width constraints for vessel archive */
body.body_style_wide:not(.expand_content) .vessel-archive-wrapper [class*="content_wrap"] > .content,
body.body_style_boxed:not(.expand_content) .vessel-archive-wrapper [class*="content_wrap"] > .content,
body .vessel-archive-wrapper [class*="content_wrap"] > .content,
.vessel-archive-wrapper .content,
.vessel-archive-wrapper .page_content_wrap > .content_wrap > .content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Vessel Archive Wrapper Styles */
.vessel-archive-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.vessel-archive-wrapper.no-sidebar {
    max-width: 100%;
}

.vessel-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Hide only theme sidebars, not vessel content */
body .sidebar:not(.vessel-archive-wrapper *),
body .widget-area:not(.vessel-archive-wrapper *),
body aside:not(.vessel-archive-wrapper *),
body .sidebar_below:not(.vessel-archive-wrapper *),
body .sidebar_default:not(.vessel-archive-wrapper *),
body .right-sidebar:not(.vessel-archive-wrapper *) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Force full width layout and override theme constraints */
.vessel-archive-wrapper,
.vessel-archive-wrapper .content-area,
.vessel-archive-wrapper .site-main,
.vessel-archive-wrapper main,
.vessel-archive-wrapper .content,
.vessel-archive-wrapper .page-content,
.vessel-archive-wrapper .entry-content,
.vessel-archive-wrapper .post-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Override any grid or flex layouts that might constrain width */
.vessel-archive-wrapper .site-content,
.vessel-archive-wrapper .content-wrap,
.vessel-archive-wrapper .container {
    display: block !important;
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Container Styles */
.vessels-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Grid Layout */
.vessels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Vessel Card */
.vessel-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.vessel-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.vessel-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.vessel-card h3 a {
    text-decoration: none;
    color: inherit;
}

.vessel-card h3 a:hover {
    color: #3498db;
}

/* Vessel Meta Information */
.vessel-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.vessel-meta-item {
    display: flex;
    flex-direction: column;
}

.vessel-meta-label {
    font-weight: 600;
    color: #555;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.vessel-meta-value {
    color: #333;
    font-size: 0.95em;
}

/* Single Vessel Details */
.vessel-details {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.vessel-details h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.2em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.vessel-info-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.vessel-info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    flex: 1;
    min-width: 250px;
}

.vessel-info-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.vessel-info-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vessel-info-item:last-child {
    margin-bottom: 0;
}

.vessel-info-item .label {
    font-weight: 600;
    color: #555;
    flex: 1;
}

.vessel-info-item .value {
    color: #333;
    flex: 2;
    text-align: right;
}

/* Search Form */
.vessels-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.vessels-search-form h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-actions {
    text-align: right;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Loading and Messages */
.vessels-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.vessels-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

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

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

.vessels-message.info {
    background: #cce7ff;
    border: 1px solid #b8d4f0;
    color: #0c5460;
}

/* Pagination */
.vessels-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
}

.vessels-pagination a,
.vessels-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.vessels-pagination a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.vessels-pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Badge Styles */
.vessel-type-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vessel-flag {
    display: inline-block;
    padding: 2px 6px;
    background: #e74c3c;
    color: white;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vessels-container {
        padding: 15px;
    }
    
    .vessels-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vessel-meta {
        grid-template-columns: 1fr;
    }
    
    .search-form-grid {
        grid-template-columns: 1fr;
    }
    
    .vessel-info-grid {
        flex-direction: column;
    }
    
    .vessel-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vessel-info-item .value {
        text-align: left;
        margin-top: 5px;
    }
    
    .search-actions {
        text-align: center;
    }
    
    .vessels-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .vessel-card {
        padding: 15px;
    }
    
    .vessel-details {
        padding: 20px;
    }
    
    .vessel-details h1 {
        font-size: 1.8em;
    }
    
    .vessels-search-form {
        padding: 15px;
    }
}

/* Animation for vessel cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vessel-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Archive Vessel Template Styles */
.archive-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.archive-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 1.1em;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Form Styles */
.vessels-search-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.vessels-search-form h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Stats and Results */
.vessels-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.results-info {
    margin: 0;
    color: #6c757d;
    font-weight: 500;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 600;
    color: #2c3e50;
}

.sort-options select {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

/* Messages */
.vessels-message {
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

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

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

/* Pagination */
.vessels-pagination {
    margin: 30px 0;
    text-align: center;
}

.vessels-pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.vessels-pagination li {
    margin: 0;
}

.vessels-pagination a,
.vessels-pagination span {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #3498db;
    border-right: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.vessels-pagination a:hover {
    background: #f8f9fa;
    color: #2980b9;
}

.vessels-pagination .current {
    background: #3498db;
    color: white;
}

.vessels-pagination li:last-child a,
.vessels-pagination li:last-child span {
    border-right: none;
}

/* Statistics Section */
.vessels-statistics {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
}

.vessels-statistics h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

.type-distribution h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.type-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type-bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.type-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.type-name {
    font-weight: 600;
    color: #2c3e50;
}

.type-count {
    color: #6c757d;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

/* Loading State */
.vessels-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.vessels-loading:before {
    content: "⏳";
    margin-right: 10px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .vessels-container {
        padding: 15px;
    }
    
    .search-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vessels-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .search-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vessels-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading states */
#vessels-search-results.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

#vessels-search-results.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error messages */
.vessels-message.error {
    background-color: #fff3f3;
    border-color: #ff6b6b;
    color: #d63031;
}

.vessels-message.error h3 {
    color: #d63031;
}

/* Search results styling */
.search-results {
    margin-top: 20px;
}

.search-results .vessels-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Vessels List Layout (Row Format) */
.vessels-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vessel-row {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.vessel-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.vessel-main-info {
    flex: 1;
    min-width: 0;
    margin-right: 20px;
}

.vessel-title {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

.vessel-title a {
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.vessel-title a:hover {
    color: #3498db;
    border-color: #3498db;
}

.vessel-excerpt {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95em;
}

.vessel-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    min-width: 400px;
    margin-right: 20px;
}

.vessel-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vessel-meta-label {
    font-size: 0.8em;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vessel-meta-value {
    font-size: 0.9em;
    color: #2c3e50;
    font-weight: 600;
}

.vessel-actions-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 120px;
}

.vessel-status {
    margin-bottom: 10px;
}

.vessel-status small {
    color: #7f8c8d;
    font-size: 0.8em;
}

.vessel-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vessel-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .vessel-main-info {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .vessel-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        min-width: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .vessel-actions-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vessel-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .vessel-actions-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* Live Vessel Data Styles */
.vessel-live-data {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.vessel-live-data h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 500;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 8px;
    border-radius: 15px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.live-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Loading States */
.live-data-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.live-data-error {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

/* Live Data Content */
.live-data-content .vessel-info-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.live-data-content .vessel-info-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

/* Additional data styling */
.consumption-data .vessel-info-item,
.countries-data .vessel-info-item {
    margin-bottom: 8px;
}

.countries-data .value {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Responsive adjustments for more sections */
@media (max-width: 768px) {
    .live-data-content .vessel-info-grid {
        flex-direction: column;
        gap: 15px;
    }
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.underway {
    background: #d4edda;
    color: #155724;
}

.status-badge.at-anchor {
    background: #fff3cd;
    color: #856404;
}

.status-badge.moored {
    background: #cce5ff;
    color: #0056b3;
}

.status-badge.not-under-command {
    background: #f8d7da;
    color: #721c24;
}

/* Tracking Section */
.vessel-tracking-section,
.voyage-history-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.vessel-tracking-section h4,
.voyage-history-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.tracking-map {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-placeholder {
    text-align: center;
}

.map-placeholder p {
    margin-bottom: 10px;
    color: #6c757d;
}

/* Voyage History */
.voyage-history {
    max-height: 400px;
    overflow-y: auto;
}

.voyage-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.voyage-item:hover {
    background: #e9ecef;
}

.voyage-route {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.voyage-route .departure {
    color: #e74c3c;
}

.voyage-route .arrival {
    color: #27ae60;
}

.voyage-route .arrow {
    color: #3498db;
    font-weight: bold;
}

.voyage-dates {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
}

.voyage-cargo {
    font-size: 0.85em;
    color: #495057;
    font-style: italic;
}

/* Live Data Footer */
.live-data-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9em;
}

.live-data-footer small {
    color: #6c757d;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8em;
}

/* Responsive Design for Live Data */
@media (max-width: 768px) {
    .live-data-content .vessel-info-grid {
        flex-direction: column;
    }
    
    .live-data-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .voyage-route {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .voyage-route .arrow {
        transform: rotate(90deg);
    }
}