.alerts-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 300px);
    background: #f5f7fa;
}

.alerts-sidebar {
    flex: 0 0 400px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.alerts-content {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.create-alert h2 {
    margin: 0 0 1.5rem 0;
    color: #1a1f36;
    font-size: 1.5rem;
}

.alert-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 500;
    color: #1a1f36;
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    padding: 0.875rem;
    border: 2px solid #e5e9f2;
    border-radius: 12px;
    background: white;
    color: #1a1f36;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group select:hover,
.form-group input:hover {
    border-color: #d0d6e4;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

.crypto-search-container {
    position: relative;
}

.crypto-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem !important;
    border: 2px solid #e5e9f2;
    border-radius: 12px;
    background: white;
    color: #1a1f36;
    font-size: 1rem;
    transition: all 0.2s;
}

.crypto-search-input:hover {
    border-color: #d0d6e4;
}

.crypto-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

.crypto-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.crypto-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
}

.crypto-suggestion {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.crypto-suggestion:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.crypto-suggestion:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.crypto-suggestion img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.crypto-suggestion-info {
    flex: 1;
}

.crypto-suggestion-name {
    font-weight: 500;
    color: #1a1f36;
    font-size: 0.95rem;
}

.crypto-suggestion-symbol {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.crypto-suggestion-price {
    color: #1a1f36;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
}

.threshold-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.threshold-input-group input {
    width: 100%;
    padding-left: 120px;
}

.current-price {    
    position: relative;
    top: 12px;
    color: #64748b;
    font-size: 0.9rem;
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.alerts-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 2rem;
    margin: 0.5rem 0;
    font-weight: 700;
}

.alerts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.alert-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.alert-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.crypto-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.crypto-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.crypto-details h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
}

.crypto-ticker {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.current-price {
    margin: 0;
    font-size: 1rem;
    color: #94a3b8;
}

.alert-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-details p {
    margin: 0;
    font-size: 0.95rem;
    color: #1a1f36;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-details strong {
    color: #64748b;
    font-weight: 500;
}

.alert-date {
    color: #64748b;
    font-size: 0.85rem !important;
    margin-top: 1rem !important;
    text-align: right;
}

.no-alerts {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e5e9f2;
}

.no-alerts i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #94a3b8;
}

.alert-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.percentage-difference {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
}

.percentage-difference.positive {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.percentage-difference.negative {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

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

.interval-group input {
    width: 80px;
}

.interval-group select {
    flex: 1;
}

.alert-recurrence {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.alert-recurrence p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.alert-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

.alert-status.active {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.alert-status.completed {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.alert-status.expired {
    background-color: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.recurring-options {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.alert-card {
    background: linear-gradient(145deg, rgba(229, 241, 255, 0.35) 0%, rgba(209, 231, 255, 0.25) 100%);
    border: 1px solid rgba(206, 206, 252, 0.23);
    position: relative;
    overflow: hidden;
}

.alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
    rgba(0, 110, 255, 0.1) 0%, 
        rgba(0, 119, 255, 0.05) 50%, 
        transparent 50.1%);
    pointer-events: none;
}

.alert-card.triggered {
    background: linear-gradient(145deg, rgba(255, 244, 229, 0.95) 0%, rgba(255, 236, 209, 0.85) 100%);
    border: 1px solid rgba(255, 152, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.alert-card.triggered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 152, 0, 0.1) 0%, 
        rgba(255, 152, 0, 0.05) 50%, 
        transparent 50.1%);
    pointer-events: none;
}

.triggered-banner {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 0.5rem 1rem;
    position: absolute;
    top: 2.1rem;
    right: -2.8rem;
    transform: rotate(45deg);
    width: 12rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.triggered-banner i {
    animation: ring 1s ease infinite;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

.alert-card.triggered .alert-header {
    position: relative;
    z-index: -1;
}

.alert-card.triggered .alert-details {
    position: relative;
    z-index: -1;
}

.alert-card.completed {
    background: linear-gradient(145deg, rgba(245, 245, 245, 0.95) 0%, rgba(235, 235, 235, 0.85) 100%);
    border: 1px solid rgba(158, 158, 158, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0.8;
}

.alert-card.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(158, 158, 158, 0.1) 0%, 
        rgba(158, 158, 158, 0.05) 50%, 
        transparent 50.1%);
    pointer-events: none;
}

.completed-banner {
    background: linear-gradient(90deg, #9e9e9e 0%, #757575 100%);
    color: white;
    padding: 0.5rem 1rem;
    position: absolute;
    top: 2.1rem;
    right: -2.8rem;
    transform: rotate(45deg);
    width: 12rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1;
}

.alert-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.action-btn.delete {
    background: rgba(239, 68, 68, 0.5);
    color: #fff;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.7);
    color: #fff;
}

.action-btn i {
    font-size: 1rem;
}

.alert-card {
    transition: all 0.3s ease;
}

.alert-card.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.alerts-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.alerts-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

.delete-all-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.5);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.delete-all-btn:hover {
    background: rgba(239, 68, 68, 0.7);
}

.delete-all-btn i {
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .alerts-container {
        flex-direction: column;
    }

    .alerts-sidebar {
        flex: none;
        width: 100%;
    }
}
