:root {
    --primary-color: #006837;
    --secondary-color: #008542;
    --background-light: #ffffff;
    --text-light: #1f2937;
    --border-light: #e5e7eb;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-light);
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.header-content > div {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Side Menu */
.side-menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--background-light);
    box-shadow: var(--shadow-light);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: calc(var(--header-height) + 1rem) 1rem 1rem 1rem;
}

.side-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.menu-items {
    list-style: none;
}

.menu-item {
    margin-bottom: 1rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.menu-link:hover {
    background-color: var(--border-light);
}

.menu-link i {
    margin-left: 0.75rem;
    width: 20px;
    text-align: center;
}

.submenu {
    list-style: none;
    margin-right: 2rem;
    margin-top: 0.5rem;
    display: none;
}

.submenu.active {
    display: block;
}

.menu-close {
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-close:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    background: var(--background-light);
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background: rgba(40,167,69,0.1);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.upload-area h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.upload-area p {
    color: #666;
}

/* Main Controls */
.main-controls {
    display: none;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background: var(--secondary-color);
}

.danger-btn {
    background: var(--danger-color);
    color: white;
}

.danger-btn:hover {
    background: #c82333;
}

/* Global Search */
.global-search {
    background: var(--background-light);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    background: var(--background-light);
    color: var(--text-light);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-container button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchBtn, #platformSearchBtn {
    background: var(--primary-color);
    color: white;
}

#clearSearch, #clearPlatformSearch {
    background: var(--danger-color);
    color: white;
}

.search-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-filters label:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.search-filters i {
    color: var(--primary-color);
}

/* Platform Cards */
.platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.platform-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.platform-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.platform-stats {
    color: #666;
}

.count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

/* Search Results */
.search-results {
    background: var(--background-light);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.results-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.results-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.results-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.results-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: white;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.filter-group label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 104, 55, 0.05);
}

/* Data Items */
.search-result-item, .data-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--background-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item.selected, .data-item.selected {
    border-color: var(--primary-color);
    background: rgba(0, 104, 55, 0.08);
    box-shadow: 0 2px 12px rgba(0, 104, 55, 0.15);
}

.search-result-item:hover, .data-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.result-header, .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-platform, .item-type {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.result-actions, .item-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.result-actions input[type="checkbox"], 
.item-actions input[type="checkbox"] {
    margin-left: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.result-actions button, .item-actions button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.copy-btn { 
    background: var(--success-color); 
    color: white; 
}

.edit-btn { 
    background: var(--warning-color); 
    color: #333; 
}

.delete-btn { 
    background: var(--danger-color); 
    color: white; 
}

.result-actions button:hover, .item-actions button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.result-content, .item-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    padding: 8px 0;
}

.result-content a, .item-content a {
    color: var(--primary-color);
    text-decoration: none;
    pointer-events: auto;
    font-weight: 500;
}

.result-content a:hover, .item-content a:hover {
    text-decoration: underline;
}

.highlight {
    background: linear-gradient(120deg, #ffff88 0%, #ffff88 100%);
    background-size: 100% 0.2em;
    background-repeat: no-repeat;
    background-position: 0 88%;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* Categories Section */
.categories-section {
    background: var(--background-light);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.categories-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.categories-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.categories-controls input {
    padding: 10px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: var(--background-light);
    color: var(--text-light);
}

.categories-controls input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.categories-controls button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.categories-controls button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.category-filter, .category-filter-platform {
    margin-bottom: 20px;
}

.category-filter select, .category-filter-platform select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: var(--background-light);
    color: var(--text-light);
    font-size: 14px;
}

.category-filter select:focus, .category-filter-platform select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.category-item {
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item h4 {
    color: var(--primary-color);
    margin: 0;
}

.category-item button {
    padding: 6px 12px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.category-item button:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Platform View */
.platform-view {
    background: var(--background-light);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

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

.back-btn {
    background: rgba(0, 104, 55, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.platform-search {
    margin-bottom: 20px;
}

.platform-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.platform-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.platform-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.platform-filters label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 104, 55, 0.05);
}

.platform-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-actions button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.platform-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--background-light);
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--danger-color);
}

/* Data Exists Modal */
.data-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.option-btn {
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

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

.replace-btn {
    border-color: var(--warning-color);
}

.replace-btn:hover {
    border-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.1);
}

.merge-btn {
    border-color: var(--success-color);
}

.merge-btn:hover {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

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

.cancel-btn:hover {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
}

.option-btn span {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.option-btn small {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.option-btn i {
    margin-left: 8px;
    font-size: 18px;
}

/* Confirm Actions */
.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.confirm-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.secondary-btn {
    background: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background: #5a6268;
}

/* Export Modal Styles */
.export-filters {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.export-filters h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.export-filter-section {
    margin-bottom: 20px;
}

.export-filter-section h5 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-filter-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    background: white;
    border: 1px solid #e9ecef;
}

.export-filter-section label:hover {
    background: rgba(0, 104, 55, 0.05);
    border-color: var(--primary-color);
}

.export-filter-section input[type="radio"],
.export-filter-section input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

.export-preview {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.preview-content {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.preview-stats {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.export-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.export-btn, .preview-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn[data-type="json"] { 
    background: var(--success-color); 
    color: white; 
}

.export-btn[data-type="csv"] { 
    background: var(--info-color); 
    color: white; 
}

.export-btn[data-type="txt"] { 
    background: var(--warning-color); 
    color: #333; 
}

.preview-btn {
    background: #6f42c1;
    color: white;
}

.export-btn:hover, .preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.category-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.category-selection select,
.category-selection input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    background: var(--background-light);
    color: var(--text-light);
}

.category-selection select:focus,
.category-selection input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal-actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

#confirmAddToCategory, #saveEdit {
    background: var(--success-color);
    color: white;
}

#cancelAddToCategory, #cancelEdit {
    background: #6c757d;
    color: white;
}

#editTextArea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    resize: vertical;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: var(--background-light);
    color: var(--text-light);
    min-height: 120px;
}

#editTextArea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.import-area {
    border: 3px dashed var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.import-area:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 104, 55, 0.05);
}

.import-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.float-button {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: none;
    font-size: 18px;
}

.float-button:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* إصلاح الاشعارات - تظهر وتختفي بسرعة */
.notification {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--danger-color);
}

.notification.warning {
    background-color: var(--warning-color);
    color: #333;
}

.notification.info {
    background-color: var(--info-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
    font-weight: 500;
}

/* Message Styles */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.info-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #bee5eb;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce {
    animation: bounce 0.4s ease-in-out;
}

@keyframes bounce {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Button Color Variations */
.results-actions button:nth-child(1), 
.platform-actions button:nth-child(1) { 
    background: var(--info-color); 
    color: white; 
}

.results-actions button:nth-child(2), 
.platform-actions button:nth-child(3) { 
    background: var(--success-color); 
    color: white; 
}

.results-actions button:nth-child(3), 
.platform-actions button:nth-child(6) { 
    background: var(--warning-color); 
    color: #333; 
}

.results-actions button:nth-child(4), 
.platform-actions button:nth-child(7) { 
    background: #6f42c1; 
    color: white; 
}

.results-actions button:nth-child(5), 
.platform-actions button:nth-child(5) { 
    background: #fd7e14; 
    color: white; 
}

.results-actions button:nth-child(6) { 
    background: var(--danger-color); 
    color: white; 
}

.platform-actions button:nth-child(2) { 
    background: #6c757d; 
    color: white; 
}

.platform-actions button:nth-child(4) { 
    background: var(--danger-color); 
    color: white; 
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0.75rem;
    }

    .header-title {
        font-size: 1.2rem;
    }

    .upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .main-controls {
        flex-direction: column;
        align-items: center;
    }

    .control-btn {
        width: 100%;
        max-width: 300px;
    }

    .platforms {
        grid-template-columns: 1fr;
    }

    .results-header,
    .categories-header,
    .platform-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .results-actions,
    .platform-actions,
    .categories-controls {
        justify-content: center;
    }

    .search-container {
        flex-direction: column;
    }

    .search-filters,
    .filter-group,
    .platform-filters {
        justify-content: center;
    }

    .result-header,
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .result-actions,
    .item-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }

    .side-menu {
        width: 85%;
        max-width: 300px;
    }

    .data-options {
        gap: 12px;
    }

    .option-btn {
        padding: 15px;
    }

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

    .confirm-btn {
        width: 100%;
    }

    .export-options {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    .floating-buttons {
        left: 1rem;
        bottom: 1rem;
    }

    .float-button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .platform-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-btn {
        align-self: flex-start;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 25px 15px;
    }

    .upload-area h3 {
        font-size: 1.3rem;
    }

    .search-container input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .search-container button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .results-actions button,
    .platform-actions button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .export-btn, .preview-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .control-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: unset;
    }

    .modal-content {
        padding: 15px;
        margin: 5% auto;
    }

    .notification {
        max-width: 90%;
        padding: 12px 20px;
    }

    .option-btn span {
        font-size: 14px;
    }

    .option-btn small {
        font-size: 12px;
    }

    .confirm-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print styles */
@media print {
    .floating-buttons,
    .notification,
    header,
    .side-menu,
    .results-actions,
    .platform-actions,
    .modal,
    .main-controls {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .container {
        max-width: none;
        margin: 0;
        padding: 1rem;
    }
}
/* Intro Section */
.intro-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 104, 55, 0.3);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 1;
}

.intro-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.intro-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.pricing-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin: 25px auto;
    max-width: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-tag {
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
}

.period {
    font-size: 1.2rem;
    opacity: 0.9;
}

.features-list {
    list-style: none;
    text-align: right;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: #90EE90;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 20px 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.close-intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.close-intro-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive for intro section */
@media (max-width: 768px) {
    .intro-section {
        padding: 30px 20px;
    }
    
    .intro-section h2 {
        font-size: 1.4rem;
    }
    
    .intro-description {
        font-size: 1rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .download-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .features-list li {
        font-size: 0.9rem;
    }
}
