/**
 * Casino Tools - Common Styles
 * These styles are always loaded regardless of dev/production mode
 */

.casino-tools-wrapper {
    width: 100%;
    margin: 20px 0;
}

.casino-tools-loading {
    text-align: center;
    padding: 40px 20px;
    color: #bdbfc3;
}

.casino-tools-loading p {
    margin: 0;
    font-size: 16px;
}

/* Basic grid layout fallback */
.casino-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .casino-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Tool card base styles */
.tool-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tool-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.tool-card-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.tool-card-description {
    color: #bdbfc3;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Category badge */
.tool-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Modal overlay */
.tool-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.tool-modal {
    background: #1a1a2e;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.tool-modal-close {
    background: none;
    border: none;
    color: #bdbfc3;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tool-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.tool-modal-body {
    padding: 24px;
}

/* Form elements */
.tool-form-group {
    margin-bottom: 20px;
}

.tool-form-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s ease;
}

.tool-form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.tool-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tool-button:active {
    transform: translateY(0);
}

.tool-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Results display */
.tool-results {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.tool-result-item:last-child {
    border-bottom: none;
}

.tool-result-label {
    color: #bdbfc3;
    font-size: 14px;
}

.tool-result-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

