/* Motorcycle Statistics Page Styles */

.stats-container {
    max-width: 1400px;
    margin: 0 auto 50px;
    padding: 20px;
}

.selector-group select:focus {
    outline: none;
    border-color: var(--theme-primary);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 53, 0.1);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.empty-icon svg {
    width: 1em;
    height: 1em;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--theme-primary);
}

.empty-state p {
    margin-bottom: 30px;
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--theme-primary);
}

.card-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.card-icon svg {
    width: 1em;
    height: 1em;
    color: #ff6b35;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: var(--theme-primary);
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--theme-primary);
}

.tab-btn.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

.tab-btn span {
    font-size: 1.2rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--theme-primary);
}

.btn-add {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* List Container */
.list-container {
    display: grid;
    gap: 16px;
}

.list-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.list-item:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin: 0;
}

.item-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.85rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
}

.item-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.btn-edit:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-delete {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.btn-delete:hover {
    background: rgba(220, 38, 38, 0.3);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 107, 53, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--theme-primary);
    border-radius: 50%;
    border: 3px solid #1a1a2e;
}

/* Chart Container */
.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    opacity: 0.6;
}

.chart-placeholder p {
    font-size: 1.1rem;
}

/* Reminders Container */
.reminders-container {
    margin-top: 30px;
}

.reminder-card {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--theme-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.reminder-urgent {
    background: rgba(220, 38, 38, 0.1);
    border-color: #ef4444;
}

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

.reminder-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-primary);
}

.reminder-urgent .reminder-title {
    color: #ef4444;
}

.reminder-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.reminder-details {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    color: var(--theme-primary);
}

.btn-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--theme-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-container {
        margin-top: 80px;
        padding: 15px;
    }

    .motorcycle-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .motorcycle-selector h1 {
        font-size: 1.5rem;
    }

    .selector-group {
        flex-direction: column;
        align-items: stretch;
    }

    .selector-group select {
        width: 100%;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .item-details {
        grid-template-columns: 1fr;
    }
}
