@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Ana stil tanımlamaları */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --background-color: #fff;
    --max-width: 1920px;
    --header-height: 80px;
    --footer-height: 20px;
    --container-padding: 20px;
    --header-z-index: 1000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;	
    font-family: 'Poppins', sans-serif;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.frame {
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background: #fff;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: var(--header-z-index);
    width: 100%;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding);
    width: 100%;
    margin: 0 auto;
    background: #fff;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px 0;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

.site-logo {
    height: 100%;
    width: 100%;
    max-height: 50px;
    object-fit: contain;
}

.header-actions {
    position: absolute;
    right: var(--container-padding);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon-container {
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #0056b3;
    color: white;
}

/* Footer Styles */
.footer {
    flex-shrink: 0;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    width: 100%;
    margin-top: auto;
    padding: 1rem 0;
}

.footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-link:hover {
    background-color: #0056b3;
    color: white;
}

.footer-copyright {
    text-align: center;
    color: #666;
    font-size: 0.75rem;
    padding-top: 0.5rem;
    width: 100%;
}

/* Login Screen Styles */
.screen {
    background: linear-gradient(90deg, #5D54A4, #7C78B8);
    position: relative;
    height: auto;
    width: 360px;
    box-shadow: 0px 0px 24px #5C5696;
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
}

.screen__content {
    z-index: 1;
    position: relative;
    height: auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.screen__background__shape {
    transform: rotate(45deg);
    position: absolute;
}

.screen__background__shape1 {
    height: 100%;
    width: 520px;
    background: #FFF;
    top: -50px;
    right: 120px;
    border-radius: 0 72px 0 0;
}

.screen__background__shape2 {
    height: 220px;
    width: 220px;
    background: #6C63AC;
    top: -172px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape3 {
    height: 540px;
    width: 190px;
    background: linear-gradient(270deg, #5D54A4, #6A679E);
    top: -24px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape4 {
    height: 400px;
    width: 200px;
    background: #7E7BB9;
    top: 420px;
    right: 50px;
    border-radius: 60px;
}

.login {
    width: 90%;
    padding: 40px 0;
    margin: 0 auto;
}

.login__field {
    padding: 1.2rem 0;
    position: relative;
}

.login__icon {
    position: absolute;
    top: 40px;
    left: 0;
    right: auto;
    color: #7875B5;
    font-size: 1.2rem;
}

.login__input {
    border: none;
    border-bottom: 2px solid #D1D1D4;
    background: transparent;
    padding: 15px 15px 15px 35px;
    font-weight: 700;
    width: 100%;
    transition: .2s;
    font-size: 1.1rem;
}

.login__input::placeholder {
    color: rgba(51, 51, 51, 0.3);
}

.login__input:active,
.login__input:focus,
.login__input:hover {
    outline: none;
    border-bottom-color: #333;
    background: transparent;
}

.login__submit {
    background: #6C63AC;
    font-size: 1.1rem;
    padding: 20px 25px;
    border-radius: 26px;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    width: 100%;
    color: #fff;
    box-shadow: 0px 2px 4px rgba(108, 99, 172, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.login__submit:active,
.login__submit:focus,
.login__submit:hover {
    background: #5D54A4;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(108, 99, 172, 0.4);
}

.button__icon {
    position: absolute;
    right: 20px;
    font-size: 24px;
    color: #fff;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.75rem;
}

.remember-me {
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid #D1D1D4;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Nav menü içindeki linklerin stilleri */
.nav-link {
    padding: 0.7rem 1rem;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

/* SweetAlert2 Genel Stilleri */
.swal2-container {
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: 100vh !important;
    box-sizing: border-box !important;
    transition: background-color 0.1s !important;
}

.swal2-popup {
    position: relative !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-out !important;
    width: 400px !important;
    padding: 1.5rem !important;
    font-size: 15px !important;
}

.swal2-title {
    color: #333 !important;
    font-weight: 600 !important;
    text-align: center !important;
    word-break: break-word !important;
    font-size: 18px !important;
    padding: 0.75rem !important;
}

.swal2-html-container {
    color: #666 !important;
    text-align: center !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    padding: 0.75rem !important;
    margin: 0.75rem 0 !important;
}

.swal2-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 1rem 0 0 0 !important;
    padding: 0 !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    margin: 0 0.25rem !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    min-width: 100px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}

.swal2-icon {
    position: relative !important;
    box-sizing: content-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: 3px solid transparent !important;
    border-radius: 50% !important;
    margin: 1.25rem auto !important;
    width: 70px !important;
    height: 70px !important;
}

.swal2-icon.swal2-success {
    border-color: #a5dc86 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    display: block !important;
    position: absolute !important;
    background-color: #a5dc86 !important;
    border-radius: 2px !important;
    z-index: 2 !important;
    height: 3px !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    position: absolute !important;
    box-sizing: content-box !important;
    border: 3px solid rgba(165, 220, 134, 0.3) !important;
    border-radius: 50% !important;
    z-index: 2 !important;
    top: -3px !important;
    left: -3px !important;
    width: 100% !important;
    height: 100% !important;
}

.swal2-icon.swal2-success .swal2-success-fix {
    position: absolute !important;
    background-color: #fff !important;
    transform: rotate(-45deg) !important;
    z-index: 1 !important;
    width: 6px !important;
    height: 80px !important;
    left: 32px !important;
    top: 10px !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip {
    width: 22px !important;
    left: 14px !important;
    top: 35px !important;
}

.swal2-icon.swal2-success .swal2-success-line-long {
    width: 38px !important;
    right: 10px !important;
    top: 30px !important;
}

/* Loading Indicator Styles */
#loading {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-align: center;
    min-width: 200px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease-out;
}

#loading i.fa-spinner {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
    animation: spin 1s linear infinite;
}

/* Animasyonlar */
@keyframes swal2-show {
    0% { transform: scale(0.7) !important; }
    45% { transform: scale(1.05) !important; }
    80% { transform: scale(0.95) !important; }
    100% { transform: scale(1) !important; }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    100% {
        transform: scale(0.5) !important;
        opacity: 0 !important;
    }
}

@keyframes swal2-animate-success-line-tip {
    0% { width: 0 !important; left: 0 !important; top: 20px !important; }
    54% { width: 0 !important; left: 0 !important; top: 20px !important; }
    70% { width: 35px !important; left: -5px !important; top: 35px !important; }
    84% { width: 25px !important; left: 14px !important; top: 30px !important; }
    100% { width: 25px !important; left: 14px !important; top: 30px !important; }
}

@keyframes swal2-animate-success-line-long {
    0% { width: 0 !important; right: 0 !important; top: 25px !important; }
    65% { width: 0 !important; right: 0 !important; top: 25px !important; }
    84% { width: 45px !important; right: 8px !important; top: 25px !important; }
    100% { width: 45px !important; right: 8px !important; top: 25px !important; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.swal2-show {
    animation: swal2-show 0.3s ease-out !important;
}

.swal2-hide {
    animation: swal2-hide 0.15s forwards !important;
}

.swal2-success-line-tip {
    animation: swal2-animate-success-line-tip 0.75s !important;
}

.swal2-success-line-long {
    animation: swal2-animate-success-line-long 0.75s !important;
}

.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.4) !important;
}

.swal2-backdrop-hide {
    background: rgba(0, 0, 0, 0) !important;
}

/* Top Bar Styles */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 8px var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 40px;
}

.exchange {
    display: flex;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    padding:0 0 0 20px;
}

.exchange span {
    display: flex;
    align-items: center;
    cursor: help;
}

.contact-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.contact-link {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link i {
    font-size: 14px;
}

.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 0 20px 0 0;
}

.social-media a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

/* Responsive düzenlemeler */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --footer-height: 50px;
        --container-padding: 10px;
    }

    .header-container {
        padding: 0 10px;
        gap: 5px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 80%;
        margin: 0;
        padding: 5px 0;
    }
  

        

    .header-actions {
        min-width: 80px;
        margin: 0 2px;
    }

    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 5px var(--container-padding);
        gap: 5px;
    }

    .exchange, .contact-info, .social-media {
        width: 100%;
        justify-content: center;
        font-size: 11px;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --container-padding: 15px;
    }

    .header-container {
        padding: 0 15px;
        gap: 8px;
    }

    .logo {
        position: static;
        transform: none;
        order: 0;
    }

    .site-logo {
        max-height: 45px;
    }

    .top-bar {
        padding: 5px 15px;
    }

    .exchange span, .contact-link, .social-media a {
        font-size: 12px;
    }

    .contact-info {
        gap: 10px;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .container, .frame {
        width: 95%;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo {
        width: auto;
        height: 70%;
        margin: 0;
        padding: 5px 0;
    }
}

@media (min-width: 1367px) and (max-width: 1919px) {
    :root {
        --container-padding: 30px;
    }

    .container, .frame {
        width: 90%;
    }

    .header-container {
        padding: 0 30px;
    }

    .logo {
        min-width: 110px;
        max-width: 150px;
    }
}

@media (min-width: 1920px) {
    :root {
        --container-padding: 40px;
    }

    .container, .frame {
        width: 80%;
    }

    .header-container {
        padding: 0 40px;
    }

   

    .logo {
       
        width: auto;
        height: 80%;
        margin: 0;
        padding: 5px 0;
    }
  
}

.selected-customer-info .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.selected-customer-info {
    max-width: 100%;
    overflow: hidden;
}

.selected-customer-info .alert {
    border: none;
    background-color: #e8f4f8;
}

.selected-customer-info .btn-outline-danger {
    border-width: 1px;
}

/* Footer Linkleri */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

/* Sayfa İçerikleri */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card-body {
    padding: 2rem;
}

.card h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.card ul {
    padding-left: 1.5rem;
}

.card li {
    margin-bottom: 0.5rem;
}

.alert-info {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

/* Layout Kredi Kartı Formu */
.layout-credit-card-form {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    margin-top: 2rem;
}

.layout-credit-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.layout-credit-card-left {
    position: sticky;
    top: 2rem;
}

.layout-card-preview {
    width: 280px;
    height: 180px;
    perspective: 1000px;
    margin: 0 auto;
    position: relative;
}

.layout-bank-info {
    margin: 50px 0 0 50px;
    width: 80%;
    height: 100%;
}

.layout-credit-card-right {
    padding: 1rem 0;
}

.layout-form-group {
    margin-bottom: 1.5rem;
}

.layout-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.layout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.layout-form-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Tasarım */
@media (max-width: 991px) {
    .layout-credit-card-container {
        grid-template-columns: 1fr;
    }

    .layout-credit-card-left {
        position: static;
    }

    .layout-card-preview {
        height: 180px;
    }

    .layout-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .layout-credit-card-form {
        padding: 1rem;
    }

    .layout-card-preview {
        height: 160px;
    }

    .layout-form-actions {
        grid-template-columns: 1fr;
    }
}