/* Custom Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.navbar-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-copy {
    font-size: 0.875rem;
}

.subscription-url {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    word-break: break-all;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-card .card-body {
    padding: 2rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.table-actions {
    white-space: nowrap;
}

.form-floating > label {
    color: #6c757d;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    color: white;
}

.subscription-card {
    transition: transform 0.2s ease-in-out;
}

.subscription-card:hover {
    transform: translateY(-2px);
}

.copy-button {
    position: relative;
    overflow: hidden;
}

.copy-button.copied::after {
    content: "Copied!";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

.target-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.friendly-url {
    font-family: 'Courier New', monospace;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.friendly-url-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.friendly-url-preview code {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: transparent;
}

.friendly-url-preview .text-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.friendly-url-preview .text-danger {
    background-color: #f8d7da;
    color: #842029;
}

.friendly-url-preview .text-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.friendly-url-preview .text-muted {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Fix dropdown menu overlay issues */
.subscription-card {
    position: relative;
    z-index: 1;
}

.subscription-card .dropdown {
    position: relative;
}

.subscription-card .dropdown-menu {
    z-index: 1050 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175) !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Increase card z-index when dropdown is open */
.subscription-card.dropdown-active {
    z-index: 1040 !important;
    position: relative;
}

/* Ensure modal has the highest z-index */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* Password toggle button styles */
.input-group .btn-outline-secondary {
    border-left: none;
    border-color: #ced4da;
}

.input-group .form-floating:focus-within + .btn-outline-secondary {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Ensure proper border radius for input groups */
.input-group .form-floating .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
} 