.bankcard-designer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazirmatn', sans-serif;
}

.bankcard-designer-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
}

/* Side Menu Styles */
.side-menu {
    width: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.menu-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.menu-header h3 {
    margin: 0;
    color: #333;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: none;
    background: none;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: right;
}

.menu-item:hover {
    background: #e9ecef;
}

.menu-item.active {
    background: #4a90e2;
    color: white;
}

.menu-item i {
    font-size: 18px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
    width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Card Preview Styles */
.card-preview {
    margin: 30px 0;
    perspective: 1000px;
}

.card {
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 15px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-logo {
    height: 40px;
    background-image: url('../images/card-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
}

.card-number {
    font-size: 24px;
    letter-spacing: 2px;
    text-align: center;
    margin: 20px 0;
    font-family: 'Vazirmatn', sans-serif;
}

.card-holder-name {
    font-size: 16px;
    text-transform: uppercase;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
}

.card-expiry {
    font-size: 14px;
    text-align: left;
    font-family: 'Vazirmatn', sans-serif;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Card History Styles */
.card-history-section {
    display: none;
}

.card-history-section.active {
    display: block;
}

.card-history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-history-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.card-history-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.card-history-item-info {
    flex: 1;
}

.card-history-item-actions {
    display: flex;
    gap: 10px;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bankcard-designer-wrapper {
        flex-direction: column-reverse;
        padding: 15px;
    }

    .side-menu {
        width: 100%;
        margin-bottom: 20px;
    }

    .menu-items {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .menu-item {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .card {
        max-width: 100%;
    }

    .card-history-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
} 