/* ============================================
   MapleStory Nionsoft - Enhanced Styles v2
   ============================================ */

/* Color Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    --secondary-gradient: linear-gradient(135deg, #f24236 0%, #e74c3c 100%);
    --accent-gradient: linear-gradient(135deg, #ffb84d 0%, #ff9800 100%);
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #7f8c8d;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-light: rgba(230, 126, 34, 0.15);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(236, 240, 241, 0.8);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Text Selection */
::selection {
    background: rgba(255, 140, 66, 0.3);
    color: #2c3e50;
}

/* Scrollable Elements */
.scrollable-section {
    max-height: 600px;
    overflow-y: auto;
}

/* Table Styling */
.table {
    color: var(--text-secondary);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 152, 0, 0.06);
}

.table-striped > tbody > tr:hover {
    background-color: rgba(255, 152, 0, 0.12);
    transition: all 0.3s ease;
}

.table thead {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    font-weight: 700;
    border-bottom: 2px solid #e67e22;
}

.table th {
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table td {
    vertical-align: middle;
    border-color: rgba(148, 163, 184, 0.1);
}

/* Badge Styling */
.badge {
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* Modal */
.modal-content {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

.modal-header {
    border-color: rgba(148, 163, 184, 0.15);
    background: rgba(241, 245, 249, 0.9);
}

.modal-header .btn-close {
    filter: invert(0.8);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-title {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pagination */
.page-link {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #ffe0b2;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background-color: #fff3e0;
    border-color: #ff8c42;
    color: #ff8c42;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    border-color: #ff8c42;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

/* List Group */
.list-group-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: #ffe0b2;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #fff3e0;
    border-color: #ff8c42;
    transform: translateX(4px);
}

.list-group-item.active {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    border-color: #ff8c42;
    color: white;
    font-weight: 600;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 140, 66, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 140, 66, 0.6);
    }
}

.alert {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Styles */
.btn-primary-modern {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 0.8rem 2rem !important;
    border-radius: 8px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3) !important;
    letter-spacing: 0.3px !important;
}

.btn-primary-modern:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.5) !important;
    color: white !important;
}

.btn-primary-modern:active {
    transform: translateY(-1px) !important;
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid #ffe0b2 !important;
    color: #ff8c42 !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-secondary-modern:hover {
    background: #fff3e0 !important;
    border-color: #ff8c42 !important;
    color: #ff8c42 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2) !important;
}

.btn-danger-modern {
    background: rgba(242, 66, 54, 0.1) !important;
    border: 2px solid #f24236 !important;
    color: #f24236 !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.btn-danger-modern:hover {
    background: #f24236 !important;
    border-color: #f24236 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.btn-success-modern {
    background: rgba(46, 204, 113, 0.1) !important;
    border: 2px solid #2ecc71 !important;
    color: #2ecc71 !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.btn-success-modern:hover {
    background: #2ecc71 !important;
    border-color: #2ecc71 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.btn-success-modern:hover {
    background: rgba(34, 197, 94, 0.25) !important;
    border-color: #86efac !important;
    color: #bbf7d0 !important;
    transform: translateY(-2px) !important;
}

/* Card Modern Style */
.card-modern {
    background: linear-gradient(135deg, #fff9f5 0%, #fff5ee 100%) !important;
    border: 2px solid #ffe0b2 !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(255, 140, 66, 0.12) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: var(--text-secondary);
    overflow: hidden;
    position: relative;
}

.card-modern:hover {
    border-color: #ff8c42 !important;
    box-shadow: 0 15px 50px rgba(255, 140, 66, 0.25) !important;
    transform: translateY(-6px) !important;
}

.card-modern h5 {
    color: var(--text-primary);
    font-weight: 700;
}

.card-modern .text-muted {
    color: var(--text-muted) !important;
}

/* Alert Modern Style */
.alert-modern {
    background: linear-gradient(135deg, #fff9f5 0%, #fff5ee 100%) !important;
    border: 2px solid #ffe0b2 !important;
    border-left: 5px solid #ff8c42 !important;
    border-radius: 10px !important;
    color: #2c3e50 !important;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.1) !important;
}
}

.alert-modern.alert-warning {
    border-left-color: #f24236 !important;
    color: #2c3e50 !important;
}
}

.alert-modern.alert-danger {
    border-left-color: #f24236 !important;
    color: #2c3e50 !important;
}

.alert-modern.alert-success {
    border-left-color: #2ecc71 !important;
    color: #2c3e50 !important;
}

.alert-modern.alert-info {
    border-left-color: #3498db !important;
    color: #2c3e50 !important;
}

/* Input Styling */
.form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #ffe0b2 !important;
    color: #2c3e50 !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #ff8c42 !important;
    color: #2c3e50 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.15) !important;
}
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Select Styling */
.form-select {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: var(--text-secondary) !important;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    color: var(--text-primary) !important;
}

/* Text Styling */
.title-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-light {
    color: var(--text-primary) !important;
}

/* Progress Bar */
.progress {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

.progress-bar {
    background: var(--primary-gradient) !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .title-gradient {
        font-size: 1.8rem !important;
    }

    .container-content {
        margin-top: 1rem;
    }
    
    .btn-primary-modern {
        padding: 0.7rem 1.5rem !important;
    }
}




