/* ===================================
   FindexPay - Modern Black & White Theme
   =================================== */

/* Root Variables */
:root {
    --primary-black: #000000;
    --primary-red: #ED1C24;
    --dark-gray: #1a1a1a;
    --medium-gray: #404040;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border-gray: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.24);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body Background */
body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0,0,0,.02) 35px, rgba(0,0,0,.02) 70px),
            repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,.02) 35px, rgba(0,0,0,.02) 70px);
    pointer-events: none;
    z-index: 1;
}

/* Main Card */
.main-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-gray);
    animation: fadeInUp 0.5s ease-out;
}

/* Logo */
.logo {
    width: 200px;
    margin: 0 auto 3rem auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Alert Styles */
.alert-warning,
.alert-error {
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid;
    animation: slideInLeft 0.4s ease-out;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: var(--primary-red);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
}

.alert-text {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* Payment Info Card */
.payment-info-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border: 2px solid var(--primary-black);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: .5rem;
    position: relative;
    overflow: hidden;
}

.payment-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-black) 0%, var(--primary-red) 100%);
}

.payment-bank-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.175rem 0;
    border-bottom: 1px solid var(--border-gray);
    transition: var(--transition);
}

.info-row:hover {
    background: rgba(0, 0, 0, 0.02);
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-right: 0.5rem;
}

.info-label {
    color: var(--medium-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.info-value-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-value {
    font-weight: 700;
    color: var(--primary-black);
    font-size: 0.95rem;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-black);
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Copy Button */
.copy-btn {
    background: var(--white);
    border: 2px solid var(--primary-black);
    padding: 0.5rem;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    background: var(--primary-black);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.icon-copy {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-black);
    transition: var(--transition);
}

.copy-btn:hover .icon-copy {
    color: var(--white);
}

/* Message Card */
.message-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.message-text {
    color: #075985;
    text-align: center;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.warning-text {
    color: var(--primary-red);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Transaction Code Card */
.transaction-code-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.transaction-code {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--primary-black);
    font-family: 'Courier New', monospace;
}

/* Form Styles */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    transition: var(--transition);
    color: var(--primary-black);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: var(--transition);
    background: var(--white);
    padding: 0 0.5rem;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary-black);
    font-weight: 600;
}

.select-label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary-black);
    font-weight: 600;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.form-select option {
    padding: 0.5rem;
    background: var(--white);
    color: var(--primary-black);
}

.form-select option:hover {
    background: var(--light-gray);
}

.amount-input {
    padding-right: 3rem;
}

.currency-symbol {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-black);
    pointer-events: none;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    background: var(--primary-black);
    color: var(--white);
    padding: 1.125rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid var(--primary-black);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 28, 36, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading .btn-text {
    animation: pulse 1.5s infinite;
}

/* Toastr Override */
#toast-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#toast-container .toast-success {
    background: var(--primary-black);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-lg);
}

#toast-container .toast-error {
    background: var(--primary-red);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-lg);
}

#toast-container .toast-message {
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .main-card {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .logo {
        width: 160px;
        margin-bottom: 2rem;
    }

    .payment-bank-title {
        font-size: 1.25rem;
    }

    .amount-value {
        font-size: 1.25rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-black);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--medium-gray);
}

/* Selection */
::selection {
    background: var(--primary-black);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-black);
    color: var(--white);
}

/* style.css dosyanıza eklenecek success alert stili */

.alert-success {
    @apply bg-green-50 border border-green-200 rounded-lg p-4 mb-4 flex items-start space-x-3;
}

.alert-success .alert-icon {
    @apply text-2xl;
}

.alert-success .alert-title {
    @apply font-semibold text-green-800 mb-1;
}

.alert-success .alert-text {
    @apply text-green-700 text-sm leading-relaxed;
}

/* Eğer mevcut alert stilleri Tailwind sınıfları kullanmıyorsa, normal CSS versiyonu: */

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success .alert-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.alert-success .alert-title {
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.alert-success .alert-text {
    color: #15803d;
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}