/**
 * IKAROS Token Modal Styling
 * Custom styles for presale and referral modals
 */

/* Modal Base Styling */
.modal .modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #17213f;
    color: #e0e0f0;
}

.modal .modal-header {
    border-bottom: 1px solid #2e3b5a;
    padding: 1rem 1.5rem;
    background-color: #1d2a4d;
}

.modal .modal-body {
    padding: 1.5rem;
    background-color: #17213f;
}

.modal .modal-title {
    color: #fff;
    font-family: 'Cinzel Decorative', cursive;
    letter-spacing: 0.5px;
}

.modal .btn-close {
    color: #fff;
    filter: invert(1) grayscale(100%) brightness(120%);
}

/* Card Styling */
.modal .card {
    background-color: #1d2a4d;
    border: 1px solid #2e3b5a;
    margin-bottom: 1rem;
}

.modal .card-header {
    background-color: #273862;
    border-bottom: 1px solid #324272;
    color: #ffffff;
    font-weight: 500;
}

.modal .card-body {
    background-color: #1d2a4d;
}

/* Button Styling */
.modal .btn-primary {
    background: linear-gradient(135deg, #3c6cd5 0%, #2a4ba8 100%);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #447de8 0%, #3156bc 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal .btn-outline-primary {
    border-color: #3c6cd5;
    color: #3c6cd5;
    background-color: transparent;
    transition: all 0.2s ease;
}

.modal .btn-outline-primary:hover {
    background-color: #3c6cd5;
    color: #fff;
}

.modal .btn-outline-danger {
    border-color: #a83247;
    color: #a83247;
    background-color: transparent;
    transition: all 0.2s ease;
}

.modal .btn-outline-danger:hover {
    background-color: #a83247;
    color: #fff;
}

/* Form Styling */
.modal .form-control, .modal .form-select {
    background-color: #273862;
    border: 1px solid #324272;
    color: #e0e0f0;
    transition: all 0.2s ease;
}

.modal .form-control:focus, .modal .form-select:focus {
    background-color: #2d4070;
    border-color: #3c6cd5;
    box-shadow: 0 0 0 0.25rem rgba(60, 108, 213, 0.25);
    color: #ffffff;
}

.modal .form-control::placeholder {
    color: #8d9bc7;
}

.modal .input-group-text {
    background-color: #2d4070;
    border: 1px solid #324272;
    color: #e0e0f0;
}

.modal .form-text {
    color: #8d9bc7;
}

/* Alert Styling */
.modal .alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.2);
    color: #5bd778;
}

.modal .alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffcf40;
}

.modal .alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.2);
    color: #ff6b80;
}

.modal .alert-info {
    background-color: rgba(60, 108, 213, 0.15);
    border-color: rgba(60, 108, 213, 0.2);
    color: #78a2ff;
}

/* Badges */
.modal .badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 4px;
}

/* Stats Container Styling */
.stats-container {
    background: linear-gradient(135deg, #1d3263 0%, #2a4179 100%) !important;
    border: 1px solid #324272;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stats-icon-bg {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 56px !important;
    height: 56px !important;
}

.stats-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-label {
    color: #8d9bc7 !important;
    font-size: 0.875rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 31, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background-color: #1d2a4d;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.spinner-border {
    color: #3c6cd5 !important;
}

/* Toast Styling */
.toast-container {
    z-index: 11000;
}

.toast {
    background-color: #1d2a4d;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toast-header {
    border-bottom: 1px solid #2e3b5a;
}

.toast-body {
    color: #e0e0f0;
}

/* Social Sharing Buttons */
.social-share-buttons .btn-social {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    background-color: #1d2a4d;
    border: none;
    color: #3c6cd5;
}

.social-share-buttons .btn-social:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    background-color: #273862;
}

.social-share-buttons .btn-social[data-platform="twitter"] {
    color: #1DA1F2;
}

.social-share-buttons .btn-social[data-platform="telegram"] {
    color: #0088cc;
}

.social-share-buttons .btn-social[data-platform="facebook"] {
    color: #1877F2;
}

/* Wallet Info Card Styling */
#walletInfoReferral {
    background-color: #1d2a4d;
    border: 1px solid #324272;
    color: #e0e0f0;
}

#walletInfoReferral.mainnet-network {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
}

#walletInfoReferral.testnet-network {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

/* Network Info Badge Styling */
.network-info .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Disconnect button styling in wallet info */
#disconnectWalletReferral {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #ff7b8a;
}

#disconnectWalletReferral:hover {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ffa0aa;
}

/* Custom Token Name Style */
.token-name {
    font-family: 'Cinzel Decorative', cursive;
    color: #3c6cd5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Custom cursor styling */
html, 
body,
.modal-dialog,
.modal-content {
    cursor: default !important;
}

button,
a,
input,
select,
.btn,
.form-control,
.form-select,
.share-btn {
    cursor: pointer !important;
}

/* Enhanced cursor interaction for modals */
.modal .btn:hover,
.modal a:hover,
.modal .form-control:focus,
.modal .form-select:focus {
    cursor: pointer !important;
}

/* Tooltip styles */
.tooltip {
    opacity: 1;
}

.tooltip .tooltip-inner {
    background-color: #273862;
    color: #e0e0f0;
    border: 1px solid #324272;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-width: 250px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #324272;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #324272;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #324272;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #324272;
}

/* Progress bar styling */
.progress {
    background-color: #273862;
    height: 0.75rem;
    overflow: hidden;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(135deg, #3c6cd5 0%, #2a4ba8 100%);
}

/* Badges and status indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.75em;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    gap: 0.35rem;
}

.status-badge i {
    font-size: 0.75rem;
}

.status-badge.success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #5b9dd7;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-badge.warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffcf40;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-badge.danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b80;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.status-badge.info {
    background-color: rgba(60, 108, 213, 0.15);
    color: #78a2ff;
    border: 1px solid rgba(60, 108, 213, 0.2);
}
