/* Additional Component Styles */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(137, 193, 78, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(56, 86, 102, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Focus states */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(137, 193, 78, 0.2);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #89c14e 0%, #385666 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #385666 0%, #2a4a5a 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(56, 86, 102, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 86, 102, 0.2);
}

/* Shadows */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(56, 86, 102, 0.08);
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(56, 86, 102, 0.12);
}

.shadow-strong {
    box-shadow: 0 20px 40px rgba(56, 86, 102, 0.15);
}

.shadow-colored {
    box-shadow: 0 10px 25px rgba(137, 193, 78, 0.3);
}

/* Borders */
.border-gradient {
    position: relative;
    background: #FFFFFF;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #89c14e 0%, #385666 100%);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Status indicators */
.status-online {
    position: relative;
}

.status-online::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
}

/* Progress bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(135deg, #89c14e 0%, #385666 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #385666;
    color: #FFFFFF;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #385666;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge--primary {
    background: rgba(137, 193, 78, 0.1);
    color: #89c14e;
}

.badge--secondary {
    background: rgba(56, 86, 102, 0.1);
    color: #385666;
}

.badge--success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge--warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge--error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Cards */
.card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(56, 86, 102, 0.08);
    border: 1px solid rgba(56, 86, 102, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(56, 86, 102, 0.12);
}

.card__header {
    padding: 1.5rem 1.5rem 0;
}

.card__body {
    padding: 1.5rem;
}

.card__footer {
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
}

/* Dividers */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 86, 102, 0.2), transparent);
    margin: 2rem 0;
}

.divider--vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(56, 86, 102, 0.2), transparent);
    margin: 0 2rem;
}

/* Overlays */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modals */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal__header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #385666;
}

.modal__close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: #f1f5f9;
    color: #385666;
}

.modal__body {
    padding: 1.5rem;
}

.modal__footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert__content {
    flex: 1;
}

.alert__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert__message {
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert--success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert--warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert--info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* Tabs */
.tabs {
    border-bottom: 1px solid rgba(56, 86, 102, 0.1);
}

.tabs__list {
    display: flex;
    gap: 0;
    list-style: none;
}

.tabs__button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: #5a6c7d;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tabs__button:hover {
    color: #89c14e;
}

.tabs__button.active {
    color: #89c14e;
    border-bottom-color: #89c14e;
}

.tabs__content {
    padding: 2rem 0;
}

.tabs__panel {
    display: none;
}

.tabs__panel.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Accordion */
.accordion__item {
    border: 1px solid rgba(56, 86, 102, 0.1);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion__header {
    background: none;
    border: none;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #385666;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion__header:hover {
    background: #f8fafc;
}

.accordion__icon {
    transition: transform 0.3s ease;
}

.accordion__item.active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion__item.active .accordion__content {
    max-height: 500px;
}

.accordion__body {
    padding: 0 1.5rem 1.5rem;
    color: #5a6c7d;
    line-height: 1.6;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    border: 1px solid rgba(56, 86, 102, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(56, 86, 102, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown.active .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #5a6c7d;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown__item:hover {
    background: #f8fafc;
    color: #89c14e;
}

.dropdown__item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown__item:last-child {
    border-radius: 0 0 12px 12px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs__link {
    color: #5a6c7d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
    color: #89c14e;
}

.breadcrumbs__separator {
    color: #9ca3af;
}

.breadcrumbs__current {
    color: #385666;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(56, 86, 102, 0.2);
    border-radius: 8px;
    color: #5a6c7d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination__item:hover {
    background: #89c14e;
    border-color: #89c14e;
    color: #FFFFFF;
}

.pagination__item.active {
    background: #89c14e;
    border-color: #89c14e;
    color: #FFFFFF;
}

.pagination__item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__item.disabled:hover {
    background: transparent;
    border-color: rgba(56, 86, 102, 0.2);
    color: #5a6c7d;
}

/* Search */
.search {
    position: relative;
    max-width: 400px;
}

.search__input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid rgba(56, 86, 102, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search__input:focus {
    outline: none;
    border-color: #89c14e;
    box-shadow: 0 0 0 3px rgba(137, 193, 78, 0.1);
}

.search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(137, 193, 78, 0.1);
    color: #89c14e;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag__remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.tag__remove:hover {
    background: rgba(137, 193, 78, 0.2);
}

/* Steps */
.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: rgba(56, 86, 102, 0.2);
    z-index: -1;
}

.step.completed:not(:last-child)::after {
    background: #89c14e;
}

.step__circle {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(56, 86, 102, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #5a6c7d;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.completed .step__circle {
    background: #89c14e;
    border-color: #89c14e;
    color: #FFFFFF;
}

.step.active .step__circle {
    border-color: #89c14e;
    color: #89c14e;
}

.step__label {
    font-size: 0.875rem;
    color: #5a6c7d;
    font-weight: 500;
}

.step.completed .step__label,
.step.active .step__label {
    color: #89c14e;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(56, 86, 102, 0.2);
}

.timeline__item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline__marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: #89c14e;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(56, 86, 102, 0.2);
}

.timeline__content {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(56, 86, 102, 0.08);
    border: 1px solid rgba(56, 86, 102, 0.05);
}

.timeline__date {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.timeline__title {
    font-weight: 600;
    color: #385666;
    margin-bottom: 0.5rem;
}

.timeline__description {
    color: #5a6c7d;
    line-height: 1.6;
}