/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-create {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: var(--gradient-primary);
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.btn-hero {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: #fff;
}
.btn-cta {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    position: relative;
}
.btn-cta-primary {
    background: #fff;
    color: var(--color-dark);
    border: none;
}
.btn-cta-primary:hover {
    background: #f1f5f9;
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}
.btn-copy {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    color: var(--color-text-muted);
    border-color: #e2e8f0;
}
.btn-copy:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Cards */
.feature-card {
    background: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}
.feature-card h5 {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: var(--color-text-muted);
    margin: 0;
}
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-card .card-body {
    padding: 1.25rem;
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}
.stat-card .stat-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
.urls-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}
.subscription-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Badges */
.badge-type {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
}
.badge-custom {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--color-primary);
}
.badge-auto {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.badge-status {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
}
.badge-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #059669;
}
.badge-disabled {
    background: #fee2e2;
    color: #991b1b;
}

/* Forms */
.url-input {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s;
}
.url-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.url-input-wrapper {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}
.custom-key-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.custom-key-section .input-group {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}
.custom-key-section .input-group-text {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-right: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.custom-key-section .form-control {
    border: 2px solid #e2e8f0;
    border-left: none;
    padding: 0.75rem 1rem;
}
.custom-key-section .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: none;
}
.code-input {
    font-family: 'Monaco', 'Menlo', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Alerts */
.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.short-url-display {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    word-break: break-all;
    border: 1px solid #bae6fd;
}

/* Modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    backdrop-filter: blur(4px);
}
.confirm-modal.show {
    display: flex;
}
.confirm-dialog {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.confirm-dialog-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}
.confirm-dialog h5 {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}
.confirm-dialog-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.confirm-dialog-buttons .btn {
    min-width: 100px;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1050;
}
.toast-notification.show {
    opacity: 1;
}

/* Text & Links */
.text-primary {
    color: var(--color-primary) !important;
}
a {
    color: var(--color-primary);
}
a:hover {
    color: var(--color-primary-dark);
}
