/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Header Styles */
.header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-header {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d353c;
    margin: 0;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Card Styles */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
}

/* Title Styles */
.title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d353c;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Form Styles */
.form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #2d353c;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: #f8f9fa;
    color: #6c757d;
}

.form-control:focus {
    border-color: #348fe2;
    box-shadow: 0 0 0 0.2rem rgba(52, 143, 226, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Status Styles */
.status {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-completed {
    color: #28a745;
}

.status-requested {
    color: #ffc107;
}

.status-expired {
    color: #dc3545;
}

/* Message Styles */
.message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Button Styles */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.btn-back {
    background: #f8f9fa;
    color: #2d353c;
    text-align: center;
}

.btn-back:hover {
    background: #e9ecef;
    color: #2d353c;
}

.btn-primary {
    background: #348fe2;
    color: #fff;
}

.btn-primary:hover {
    background: #2d7bc8;
    transform: translateY(-1px);
    color: #fff;
}

.btn-success {
    background: #00acac;
    color: #fff;
}

.btn-success:hover {
    background: #009999;
    color: #fff;
}

.btn i {
    font-size: 1.2rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert ul {
    margin-bottom: 0;
}

/* Product List Styles */
.product-header {
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card a.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

.product-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2d353c;
}

.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #348fe2;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.btn-edit {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    z-index: 3;
}

.btn-edit:hover {
    background: rgba(255, 255, 255, 1);
    color: #2d353c;
}

.btn-view {
    display: none;
}

/* Product Detail Styles */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d353c;
    margin: 0;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #348fe2;
}

.product-detail-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* Image Upload Styles */
.image-upload-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.current-image {
    text-align: center;
}

.current-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.upload-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .upload-actions {
        flex-direction: column;
    }
    
    .upload-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Button Styles */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.btn-back {
    background: #f8f9fa;
    color: #2d353c;
}

.btn-back:hover {
    background: #e9ecef;
    color: #2d353c;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .card {
        padding: 0.5rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .status {
        font-size: 1.1rem;
    }
    
    .message {
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-header .btn {
        width: 100%;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .product-detail-image {
        height: 300px;
    }
}

/* Product Edit Form Styles */
.product-edit-form {
    max-width: 800px;
    margin: 0 auto;
}

.product-edit-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.product-edit-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-edit-card-header i {
    color: #6c757d;
}

.product-edit-card-body {
    padding: 1.5rem;
}

.product-edit-image-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.product-edit-image-preview {
    width: 150px;
    height: 150px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-edit-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-edit-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-edit-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
}

.product-edit-delete {
    align-self: flex-end;
    color: #dc3545;
    font-size: 0.9rem;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.product-edit-delete:hover {
    opacity: 1;
    color: #dc3545;
}

@media (max-width: 767px) {
    .product-edit-image-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-edit-image-preview {
        width: 100%;
        height: 200px;
    }
}

/* Payment Complete Styles */
.payment-complete {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.payment-complete-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.payment-complete-header {
    background-color: #28a745;
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-complete-header i {
    font-size: 1.5rem;
}

.payment-complete-header span {
    font-size: 1.25rem;
    font-weight: 500;
}

.payment-complete-body {
    padding: 2rem;
    text-align: center;
}

.payment-complete-icon {
    margin-bottom: 1.5rem;
}

.payment-complete-icon i {
    font-size: 4rem;
    color: #28a745;
}

.payment-complete-info {
    margin-bottom: 2rem;
}

.payment-complete-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d353c;
    margin-bottom: 1rem;
}

.payment-complete-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.payment-complete-amount {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amount-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #28a745;
}

.payment-complete-actions {
    margin-top: 2rem;
}

.payment-complete-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: #28a745;
    border: none;
    transition: all 0.2s;
}

.payment-complete-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .payment-complete {
        margin: 1rem;
        padding: 0.5rem;
    }

    .payment-complete-body {
        padding: 1.5rem;
    }

    .payment-complete-icon i {
        font-size: 3rem;
    }

    .payment-complete-title {
        font-size: 1.25rem;
    }

    .payment-complete-message {
        font-size: 1rem;
    }

    .amount-value {
        font-size: 1.25rem;
    }
}

/* Payment Failed Styles */
.payment-failed {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.payment-failed-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.payment-failed-header {
    background-color: #dc3545;
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-failed-header i {
    font-size: 1.5rem;
}

.payment-failed-header span {
    font-size: 1.25rem;
    font-weight: 500;
}

.payment-failed-body {
    padding: 2rem;
    text-align: center;
}

.payment-failed-icon {
    margin-bottom: 1.5rem;
}

.payment-failed-icon i {
    font-size: 4rem;
    color: #dc3545;
}

.payment-failed-info {
    margin-bottom: 2rem;
}

.payment-failed-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d353c;
    margin-bottom: 1rem;
}

.payment-failed-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.payment-failed-error {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-message {
    font-size: 1rem;
    color: #dc3545;
    font-weight: 500;
}

.payment-failed-actions {
    margin-top: 2rem;
}

.payment-failed-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: #dc3545;
    border: none;
    transition: all 0.2s;
}

.payment-failed-button:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .payment-failed {
        margin: 1rem;
        padding: 0.5rem;
    }

    .payment-failed-body {
        padding: 1.5rem;
    }

    .payment-failed-icon i {
        font-size: 3rem;
    }

    .payment-failed-title {
        font-size: 1.25rem;
    }

    .payment-failed-message {
        font-size: 1rem;
    }

    .error-message {
        font-size: 0.9rem;
    }
}

/* Product Create Form Styles */
.product-create-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.product-create-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.product-create-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.product-create-card-body {
    padding: 20px;
}

.product-create-image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-create-image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
}

.product-create-image-preview .no-image {
    color: #999;
    font-size: 14px;
}

.product-create-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.upload-actions .btn {
    min-width: 150px;
    padding: 10px 20px;
    font-size: 14px;
}

.product-create-actions {
    margin-top: 30px;
    text-align: center;
}

.product-create-submit {
    min-width: 200px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #4CAF50;
    border: none;
    transition: all 0.3s ease;
}

.product-create-submit:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .product-create-form {
        padding: 10px;
    }

    .upload-actions {
        flex-direction: column;
    }

    .upload-actions .btn {
        width: 100%;
    }

    .product-create-submit {
        width: 100%;
    }
}

/* Purchase History Styles */
.purchase-history {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.purchase-history-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.purchase-history-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
}

.purchase-history-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.purchase-history-tabs li {
    margin-right: 20px;
}

.purchase-history-tabs li a {
    display: block;
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.purchase-history-tabs li.active a {
    color: #4CAF50;
}

.purchase-history-tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4CAF50;
}

.purchase-history-body {
    padding: 8px;
}

.purchase-history-table {
    overflow-x: auto;
    width: 100%;
}

.purchase-history-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.purchase-history-table th,
.purchase-history-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.purchase-history-table th {
    background: #f8f9fa;
    padding: 16px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    font-size: 14px;
}

.purchase-history-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.purchase-history-table td.amount {
    white-space: normal;
    max-width: 180px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    overflow: visible;
    text-overflow: unset;
}

.purchase-history-table tr {
    transition: all 0.2s ease;
}

.purchase-history-table tr.clickable-row {
    cursor: pointer;
}

.purchase-history-table tr.clickable-row:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.purchase-history-table tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.purchase-history-table .amount {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 30px;
}

.status-success {
    color: #0c7;
    background-color: rgba(0, 204, 119, 0.1);
}

.status-pending {
    color: #f59f00;
    background-color: rgba(245, 159, 0, 0.1);
}

.status-expired {
    color: #e03;
    background-color: rgba(238, 0, 51, 0.1);
}

.btn-receipt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 100px;
    justify-content: center;
    text-decoration: none;
}

.btn-receipt:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-receipt i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .purchase-history {
        padding: 10px;
    }

    .purchase-history-table {
        margin: 0 0px;
    }

    .purchase-history-table th,
    .purchase-history-table td {
        padding: 12px 10px;
        font-size: 13px;
        max-width: 100px;
    }

    .purchase-history-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .purchase-history-tabs li {
        margin-right: 15px;
    }

    .purchase-history-tabs li a {
        padding: 10px 0;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 50px;
    }

    .btn-receipt {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 80px;
    }
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-section {
    background: linear-gradient(135deg, #348fe2, #1a6cb5);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(52, 143, 226, 0.1);
}

.welcome-section h4 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-section h4 i {
    font-size: 1.5rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card .card-header i {
    font-size: 1.25rem;
    color: #348fe2;
}

.info-card .card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d353c;
}

.info-card .card-body {
    padding: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    color: #2d353c;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.limit-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.limit-title {
    color: #2d353c;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.limit-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.limit-item:last-child {
    margin-bottom: 0;
}

.limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.limit-item .progress {
    height: 8px;
    background-color: rgba(52, 143, 226, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.limit-item .progress-bar {
    background-color: #348fe2;
    border-radius: 4px;
    transition: width 0.3s ease;
}

@media (max-width: 767px) {
    .dashboard {
        padding: 10px;
    }

    .welcome-section {
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 25px;
    }

    .welcome-section h4 {
        font-size: 1.5rem;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card .card-header {
        padding: 15px 20px;
    }

    .info-card .card-body {
        padding: 20px;
    }

    .limit-item {
        padding: 12px 15px;
    }
}

/* Progress Bar Styles */
progress.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    border: none;
    overflow: hidden;
}

progress.progress-bar::-webkit-progress-bar {
    background-color: #e9ecef;
    border-radius: 4px;
}

progress.progress-bar::-webkit-progress-value {
    background-color: #348fe2;
    border-radius: 4px;
    transition: width 0.3s ease;
}

progress.progress-bar::-moz-progress-bar {
    background-color: #348fe2;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Tabbar Styles */
.bottom-tabbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.bottom-tabbar .ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.bottom-tabbar .li {
    flex: 1;
    text-align: center;
}

.bottom-tabbar .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    position: relative;
}

.bottom-tabbar .btn:hover,
.bottom-tabbar .btn:focus {
    color: #348fe2;
}

.bottom-tabbar .btn.active {
    color: #348fe2;
}

.bottom-tabbar .btn.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #348fe2;
    border-radius: 3px;
}

.bottom-tabbar .ic {
    font-size: 22px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 4px;
}

.bottom-tabbar .tx {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.bottom-tabbar .cart_num {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff5b57;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255,91,87,0.3);
}

.app-content {
    padding-bottom: 80px;
    padding-top: 20px;
    padding-left: 0px;
    padding-right: 0px;
}

@media (max-width: 767px) {
    .bottom-tabbar .ul {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .bottom-tabbar .btn {
        padding: 10px 8px;
    }
    
    .bottom-tabbar .ic {
        font-size: 20px;
    }
    
    .bottom-tabbar .tx {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .bottom-tabbar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}

/* Table Styles */
.table {
    margin-bottom: 0;
    border-color: rgba(0,0,0,0.05);
}

.table th {
    font-weight: 600;
    background: #f8f9fa;
    border-bottom-width: 1px;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #2d353c;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.05);
    font-size: 0.875rem;
    color: #2d353c;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Card Tab Styles */
.card-header-tabs {
    margin: -0.5rem 0;
    border-bottom: 0;
}

.card-header-tabs .nav-link {
    padding: 1rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
}

.card-header-tabs .nav-link:hover {
    color: #348fe2;
    border-color: transparent;
}

.card-header-tabs .nav-link.active {
    color: #348fe2;
    background: transparent;
    border-bottom-color: #348fe2;
}

/* Button Styles */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

.btn-outline-primary {
    color: #348fe2;
    border-color: #348fe2;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #348fe2;
    border-color: #348fe2;
}

.btn-outline-success {
    color: #0c7;
    border-color: #0c7;
}

.btn-outline-success:hover {
    color: #fff;
    background-color: #0c7;
    border-color: #0c7;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn i {
    margin-right: 0.25rem;
}

/* Payment Link Styles */
.payment-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.payment-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.payment-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.payment-body {
    padding: 1.5rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.info-table td:first-child {
    width: 30%;
    color: #666;
    font-weight: 500;
}

.password-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-input {
    width: 40px !important;
    text-align: center;
    padding: 0.75rem;
}

.password-dots {
    color: #666;
    font-size: 1.5rem;
    margin: 0;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 2rem auto 0;
    padding: 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .payment-container {
        margin: 1rem auto;
    }

    .payment-header {
        padding: 1rem;
    }

    .payment-body {
        padding: 1rem;
    }

    .info-table td {
        padding: 0.75rem;
    }
}

/* Card Registration Styles */
.card-registration {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.card-registration-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-registration-card {
    padding: 0;
    border: none;
}

.card-registration-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-registration-header i {
    font-size: 24px;
    color: #348fe2;
}

.card-registration-header span {
    font-size: 18px;
    font-weight: 600;
    color: #2d353c;
}

.card-registration-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d353c;
}

.form-help {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #348fe2;
    box-shadow: 0 0 0 3px rgba(52,143,226,0.1);
}

.password-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-input {
    width: 45px !important;
    height: 45px;
    text-align: center;
    font-size: 18px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s;
}

.password-input:focus {
    border-color: #348fe2;
    box-shadow: 0 0 0 3px rgba(52,143,226,0.1);
}

.password-dots {
    font-size: 24px;
    color: #2d353c;
    margin: 0;
    padding-left: 8px;
}

.form-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

.form-actions .btn {
    min-width: 150px;
}

.btn-primary {
    background: #348fe2;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2d7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45,123,200,0.2);
}

@media (max-width: 767px) {
    .card-registration {
        padding: 10px;
    }

    .card-registration-header {
        padding: 15px;
    }

    .card-registration-body {
        padding: 20px;
    }

    .form-actions {
        padding: 15px 20px;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Card List Styles */
.card-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card-list-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-list-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
}

.card-list-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.card-list-tabs li {
    margin-right: 20px;
}

.card-list-tabs li a {
    display: block;
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.card-list-tabs li.active a {
    color: #348fe2;
}

.card-list-tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #348fe2;
}

.card-list-table {
    padding: 20px;
}

.card-list-table table {
    width: 100%;
    border-collapse: collapse;
}

.card-list-table th {
    background: #f8f9fa;
    padding: 16px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    font-size: 14px;
}

.card-list-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.card-issuer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-issuer i {
    color: #348fe2;
    font-size: 18px;
}

.card-issuer span {
    font-weight: 500;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-delete:hover {
    background: #dc3545;
    color: #fff;
    text-decoration: none;
}

.btn-delete i {
    font-size: 14px;
}

@media (max-width: 767px) {
    .card-list {
        padding: 10px;
    }

    .card-list-table {
        padding: 0px;
    }

    .card-list-table th,
    .card-list-table td {
        padding: 12px 10px;
    }

    .card-list-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .card-list-tabs li {
        margin-right: 15px;
    }

    .card-list-tabs li a {
        padding: 12px 0;
    }

    .btn-delete {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Withdrawal List Styles */
.withdrawal-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.withdrawal-list-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fee-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(52,143,226,0.1);
    border-radius: 20px;
    color: #348fe2;
    font-size: 14px;
    font-weight: 500;
}

.fee-info i {
    font-size: 16px;
}

.withdrawal-list-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
}

.withdrawal-list-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.withdrawal-list-tabs li {
    margin-right: 20px;
}

.withdrawal-list-tabs li a {
    display: block;
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.withdrawal-list-tabs li.active a {
    color: #348fe2;
}

.withdrawal-list-tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #348fe2;
}

.withdrawal-list-table {
    padding: 20px;
}

.withdrawal-list-table table {
    width: 100%;
    border-collapse: collapse;
}

.withdrawal-list-table th {
    background: #f8f9fa;
    padding: 16px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    font-size: 14px;
}

.withdrawal-list-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.withdrawal-list-table tr.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.withdrawal-list-table tr.clickable-row:hover {
    background-color: #f8f9fa;
}

.withdrawal-list-table .amount {
    font-weight: 600;
    color: #348fe2;
}

.checkbox-column {
    width: 48px;
    text-align: center;
    padding: 0 !important;
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 48px;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox label {
    position: relative;
    cursor: pointer;
    margin: 0;
    width: 20px;
    height: 20px;
}

.custom-checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 4px;
    transition: all 0.2s;
}

.custom-checkbox input[type="checkbox"]:checked + label:before {
    background: #348fe2;
    border-color: #348fe2;
}

.custom-checkbox input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:disabled + label:before {
    background: #f8f9fa;
    border-color: #eee;
    cursor: not-allowed;
}

.withdrawal-list-table th.checkbox-column,
.withdrawal-list-table td.checkbox-column {
    padding: 0;
    vertical-align: middle;
}

.disabled-row {
    background: #f8f9fa;
    opacity: 0.7;
}

.withdrawal-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.showing-entries {
    color: #666;
    font-size: 13px;
}

.status-badge.status-info {
    color: #348fe2;
    background-color: rgba(52,143,226,0.1);
}

@media (max-width: 767px) {
    .withdrawal-list {
        padding: 10px;
    }

    .header-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .withdrawal-list-table {
        padding: 10px;
    }

    .withdrawal-list-table th,
    .withdrawal-list-table td {
        padding: 12px 10px;
    }

    .withdrawal-list-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .showing-entries {
        margin-bottom: 10px;
    }
}

.amount-display {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.amount-value {
    font-size: 15px;
    font-weight: 600;
    color: #2d353c;
    letter-spacing: -0.3px;
}

.amount-currency {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* 결제링크 생성/관리 전용 카드 스타일 */
.purchase-link-card {
    padding: 32px 22px 24px 22px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    background: #fff;
    max-width: 420px;
    margin: 32px auto 0 auto;
}

.purchase-link-header {
    border-bottom: 1px solid #eee;
    padding: 0 20px 16px 20px;
    margin-bottom: 22px;
    background: #f8f9fa;
    text-align: left;
}

.purchase-link-header h4 {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.purchase-link-body {
    padding: 0 20px 0 20px;
}

.purchase-link-form-group {
    margin-bottom: 20px;
}

.purchase-link-form-group:last-of-type {
    margin-bottom: 28px;
}

.purchase-link-form-group .form-label {
    font-weight: 500;
    color: #2d353c;
    margin-bottom: 8px;
    display: block;
}

.purchase-link-form-group .form-control,
.purchase-link-form-group .form-select {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: #f8f9fa;
    color: #6c757d;
}

.purchase-link-form-group .form-control:focus,
.purchase-link-form-group .form-select:focus {
    border-color: #348fe2;
    box-shadow: 0 0 0 0.2rem rgba(52, 143, 226, 0.15);
}

.purchase-link-actions {
    display: flex;
    gap: 12px;
    margin: 32px 0 0 0;
    justify-content: space-between;
    padding: 0 20px 0 20px;
}

.purchase-link-actions .btn {
    flex: 1;
    min-width: 120px;
    font-size: 1.1rem;
    padding: 12px 0;
}

@media (max-width: 767px) {
    .purchase-link-card {
        padding: 18px 8px 18px 8px;
        max-width: 100%;
        margin: 18px 10px 0 10px;
    }
    .purchase-link-header,
    .purchase-link-body,
    .purchase-link-actions {
        padding-left: 0px;
        padding-right: 0px;
    }
    .purchase-link-header {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    .purchase-link-actions {
        flex-direction: column;
        gap: 10px;
    }
    .purchase-link-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* 결제링크 관리 리스트 테이블/탭 스타일 */
.purchase-link-table {
    overflow-x: auto;
    width: 100%;
}
.purchase-link-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.purchase-link-table th,
.purchase-link-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.purchase-link-table th {
    background: #f8f9fa;
    padding: 16px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    font-size: 14px;
}
.purchase-link-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.purchase-link-table tr {
    transition: all 0.2s ease;
}
.purchase-link-table tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.purchase-link-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
}
.purchase-link-tabs li {
    margin-right: 20px;
}
.purchase-link-tabs li a {
    display: block;
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}
.purchase-link-tabs li.active a {
    color: #348fe2;
}
.purchase-link-tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #348fe2;
}
@media (max-width: 768px) {
    .purchase-link-table th,
    .purchase-link-table td {
        padding: 12px 8px;
        font-size: 13px;
        max-width: 100px;
    }
    .purchase-link-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .purchase-link-tabs li {
        margin-right: 12px;
    }
    .purchase-link-tabs li a {
        padding: 10px 0;
    }
}
/* 카드 최대폭 넓게 */
.purchase-link-card {
    max-width: 100%;
}

.purchase-history-table th:last-child,
.purchase-history-table td:last-child {
  padding-right: 0;
  width: 1%;
  white-space: nowrap;
}

/* User Edit Styles */
.user-edit-container {
  max-width: 1200px;
  margin: 32px auto 0 auto;
  padding: 0 10px;
}
.user-edit-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.user-edit-card .page-header {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-align: left;
}
.user-edit-form-group {
  margin-bottom: 18px;
}
.user-edit-form-group .form-label {
  font-weight: 500;
  color: #2d353c;
  margin-bottom: 8px;
  display: block;
}
.user-edit-form-group .form-control {
  border-radius: 8px;
  border: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: #f8f9fa;
  color: #6c757d;
}
.user-edit-form-group .form-control:focus {
  border-color: #348fe2;
  box-shadow: 0 0 0 0.2rem rgba(52, 143, 226, 0.15);
}
.user-edit-form-group .form-text {
  font-size: 0.92rem;
  color: #6c757d;
  margin-top: 4px;
}
.user-edit-actions {
  margin-top: 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}
.user-edit-actions .btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 12px 0;
}
.user-edit-additional-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.user-edit-additional-actions .btn-link {
  font-size: 0.98rem;
  color: #348fe2;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.user-edit-additional-actions .btn-link.text-danger {
  color: #dc3545;
}
.user-edit-additional-actions .btn-link:hover {
  color: #2d7bc8;
  text-decoration: underline;
}
.user-edit-additional-actions .btn-link.text-danger:hover {
  color: #b52b2b;
}
@media (max-width: 767px) {
  .user-edit-container {
    max-width: 100%;
    margin: 18px 0 0 0;
    padding: 0 10px;
  }
  .user-edit-card {
    padding: 18px 6px 18px 6px;
  }
  .user-edit-actions .btn {
    font-size: 1rem;
    padding: 10px 0;
  }
  .user-edit-additional-actions {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
}

/* Login Page Styles (반응형, card 스타일 개선) */
.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #e9ecef;
  padding: 32px 0 0 0;
}
.login-container {
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 36px 28px 28px 28px;
  margin: 0 auto 32px auto;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.login-header .brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-header .icon {
  font-size: 1.5rem;
  color: #348fe2;
}
.login-content {
  width: 100%;
}
.form-floating {
  position: relative;
  margin-bottom: 18px;
}
.form-floating .form-control {
  border-radius: 8px;
  border: 1px solid #e9ecef;
  padding: 1.1rem 1rem 0.5rem 1rem;
  font-size: 1rem;
  background-color: #f8f9fa;
  color: #222;
  width: 100%;
  transition: border-color 0.2s;
}
.form-floating .form-control:focus {
  border-color: #348fe2;
  box-shadow: 0 0 0 0.2rem rgba(52, 143, 226, 0.12);
}
.form-floating label {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 0.98rem;
  color: #888;
  background: transparent;
  pointer-events: none;
  transition: all 0.2s;
  padding: 0 2px;
}
.form-floating .form-control:focus + label,
.form-floating .form-control:not(:placeholder-shown) + label {
  top: -0.9rem;
  left: 0.7rem;
  font-size: 0.85rem;
  color: #348fe2;
  background: #fff;
}
.btn-theme {
  background: #00acac;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 0;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.btn-theme:hover {
  background: #008b8b;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,172,172,0.08);
}
.btn-outline-primary {
  background: #fff;
  color: #348fe2;
  border: 1.5px solid #348fe2;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 0;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-primary:hover {
  background: #348fe2;
  color: #fff;
}
.w-100 {
  width: 100% !important;
}
.mb-15px {
  margin-bottom: 15px !important;
}
.login hr {
  margin: 18px 0;
  border: none;
  border-top: 1px solid #e9ecef;
}
@media (max-width: 767px) {
  .login {
    padding: 14px 2px 14px 2px;
    margin: 12px 10px 0 10px;
    max-width: 100%;
  }
  .login-header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .btn-theme, .btn-outline-primary {
    font-size: 1rem;
    padding: 11px 0;
  }
  .form-floating {
    margin-bottom: 14px;
  }
}

.news-feed {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 0 auto;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.news-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}
.news-caption {
  background: rgba(255,255,255,0.85);
  padding: 16px 24px;
  text-align: left;
}
.caption-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}
@media (max-width: 767px) {
  .news-feed {
    max-width: 100%;
    border-radius: 0;
  }
  .news-image {
    height: 350px;
  }
  .news-caption {
    padding: 10px 10px;
  }
}

/* Auth Info Steps */
.auth-info-steps {
    max-width: 600px;
    margin: 0 auto;
    margin-left: 10px;
    margin-right: 10px;
}

.auth-info-steps .header {
    margin-bottom: 1.5rem;
}

.auth-info-steps .page-header {
    margin-bottom: 0;
}

.auth-info-steps .card {
    margin-bottom: 1.5rem;
}

.auth-info-steps .card-header {
    padding: 1rem;
}

.auth-info-steps .card-header .section-title {
    margin-bottom: 0;
}

.auth-info-steps .card-body {
    padding: 1.5rem;
}

.auth-info-steps .form-help {
    margin-bottom: 1rem;
}

.auth-info-steps .form-actions {
    margin-top: 2rem;
}

.auth-info-steps .btn {
    width: 100%;
    display: block;
}

.auth-info-steps .btn-success {
    cursor: default;
}

.auth-info-steps .btn-success:disabled {
    opacity: 1;
}

.auth-info-steps .alert {
    margin-bottom: 1.5rem;
} 