/* ===== PRETTYTABLE.CSS - Reusable Table & Card Component Styles ===== */

/* General body and container styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle, #E0F2F1 0%, #B2DFDB 100%);
    color: #263238;
    line-height: 1.6;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

/* ===== ANIMATIONS ===== */

/* Floating Header Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TYPOGRAPHY & HEADERS ===== */

/* Gradient Header Text */
.gradient-header {
    background: linear-gradient(90deg, #00897B, #004D40, #388E3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

p.text-white\/80 {
    color: #455A64;
}

/* ===== GLASSMORPHISM CARDS ===== */

/* Main Glassmorphism Card Style */
.glass-card {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Strategy/Item Card Styles */
.strategy-card {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}
.strategy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 35px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.6);
}

/* ===== CONTROLS SECTION ===== */

/* Controls Section */
.controls-section {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Search Input */
.search-input {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #263238;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}
.search-input::placeholder {
    color: #78909C;
}

/* Sort Dropdown */
.sort-select {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #263238;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3.5rem;
    min-width: 200px;
    width: auto;
}
.sort-select:focus {
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===== BUTTONS ===== */

/* Primary Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00897B, #00695C);
    border: none;
    color: white;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #00695C, #004D40);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 137, 123, 0.3);
}

/* Secondary Buttons */
.btn-secondary {
    background-color: transparent;
    border: 1.5px solid #00695C;
    color: #00695C;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
}
.btn-secondary:hover {
    background-color: #00695C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 105, 92, 0.3);
}

/* Export Button */
.btn-export {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-export:hover {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(56, 142, 60, 0.3);
}

/* ===== STATUS BADGES & VALUES ===== */

/* Status badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    display: inline-block;
}
.status-positive { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.status-negative { background: linear-gradient(135deg, #F44336, #C62828); }
.status-neutral { background: linear-gradient(135deg, #607D8B, #455A64); }

/* Value styling */
.value-positive { color: #2E7D32; font-weight: 600; }
.value-negative { color: #D32F2F; font-weight: 600; }
.value-neutral { color: #455A64; font-weight: 500; }

/* ===== MODAL STYLES ===== */

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content, .message-box {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #263238;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-content.show, .message-box.show {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    margin-bottom: 2rem;
}
.modal-header h4, .modal-header i {
    color: #004D40;
}

.modal-field {
    margin-bottom: 1.5rem;
}
.field-label {
    font-weight: 600;
    color: #455A64;
    margin-bottom: 0.5rem;
    display: block;
}
.field-value, .field-input {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #263238;
    width: 100%;
    outline: none;
    transition: all 0.2s ease-in-out;
}
.field-input:focus {
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===== LOADING & EMPTY STATES ===== */

/* Loading and empty states */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #00897B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #607D8B;
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== PAGINATION ===== */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination button {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #455A64;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
}
.pagination button:hover:not(:disabled) {
    background-color: rgba(0, 137, 123, 0.1);
    border-color: #00897B;
    color: #004D40;
}
.pagination button.active {
    background-color: #00897B;
    color: white;
    border-color: #00695C;
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CARD LAYOUT SYSTEM ===== */

/* Card grid layout */
.strategy-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .strategy-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

/* Card content layout */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
}
.stat-label {
    font-size: 0.75rem;
    color: #607D8B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #263238;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .gradient-header {
        font-size: 2.5rem;
    }
    
    .controls-section {
        padding: 1rem;
    }
    
    .strategy-card {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    .pagination button {
        padding: 0.6rem 0.8rem;
        min-width: 40px;
    }

    .sort-select {
        min-width: 80%;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .card-actions {
        flex-direction: column;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== THEME CUSTOMIZATION VARIABLES ===== */

/* Custom properties for easy theme customization */
:root {
    --primary-color: #00897B;
    --primary-dark: #00695C;
    --primary-darker: #004D40;
    --secondary-color: #388E3C;
    --secondary-dark: #2E7D32;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --neutral-color: #607D8B;
    --text-color: #263238;
    --text-light: #455A64;
    --text-lighter: #607D8B;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
}