/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Template: hello-elementor
Author: Your Name
Author URI: https://example.com
Description: Child theme for Hello Elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-elementor-child
*/

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Typography Variables */
:root {
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
}

/* Global Font Settings */
body, 
.dashboard-container,
.dashboard-sidebar,
.dashboard-main,
.user-profile,
.dashboard-nav,
.search-container,
.upload-container,
.result-item,
.analysis-summary,
.key-terms,
.recommendations,
.notification,
.history-item,
.ai-search-results,
.relevant-file-item,
.insights-section,
.recommendations-section,
input,
select,
button,
textarea {
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Headings */
h1 {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--font-size-2xl);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--font-size-xl);
    line-height: 1.4;
    margin-bottom: 1rem;
}

h4 {
    font-size: var(--font-size-lg);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* Navigation */
.dashboard-nav a {
    font-size: var(--font-size-base);
    font-weight: 500;
}

.dashboard-nav i {
    font-size: var(--font-size-lg);
}

/* User Profile */
.user-profile h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
}

.user-profile p {
    font-size: var(--font-size-sm);
    color: #666;
}

/* Search and Upload */
.search-input-group input,
.search-button,
.upload-button {
    font-size: var(--font-size-base);
}

.search-filters select,
.upload-options label {
    font-size: var(--font-size-sm);
}

/* Results and History */
.result-item h3,
.history-item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
}

.result-item p,
.history-item p,
.explanation {
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.result-meta {
    font-size: var(--font-size-xs);
}

/* AI Search and Analysis */
.relevant-file-item h4 {
    font-size: var(--font-size-lg);
}

.relevance-score {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.analysis-summary p {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.key-terms li,
.recommendations li {
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Notifications and Loading */
.notification {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.loading-state,
.ai-search-loading {
    font-size: var(--font-size-base);
}

.loading-state i,
.ai-search-loading i {
    font-size: var(--font-size-xl);
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 1.5rem;    /* 24px */
        --font-size-2xl: 1.25rem;   /* 20px */
        --font-size-xl: 1.125rem;   /* 18px */
        --font-size-lg: 1rem;       /* 16px */
        --font-size-base: 0.9375rem; /* 15px */
        --font-size-sm: 0.8125rem;  /* 13px */
        --font-size-xs: 0.75rem;    /* 12px */
    }
}

/* Add your custom styles below this line */

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f5f6fa;
}

.dashboard-sidebar {
    width: 250px;
    background: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.dashboard-main {
    flex: 1;
    padding: 30px;
}

.user-profile {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.user-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.dashboard-nav li {
    margin-bottom: 10px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: #f0f2f5;
}

.dashboard-nav i {
    margin-right: 10px;
    width: 20px;
}

/* Search Section */
.search-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Upload Section */
.upload-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.upload-area {
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #007bff;
}

.upload-area i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 10px;
}

.upload-options {
    margin-bottom: 20px;
}

.upload-options label {
    display: block;
    margin-bottom: 10px;
}

.upload-button {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.result-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Contract Analysis */
.analysis-summary {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.key-terms,
.recommendations {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.key-terms ul,
.recommendations ul {
    list-style: none;
    padding: 0;
}

.key-terms li,
.recommendations li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: #fff;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Upload History */
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.history-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.history-item p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Search Results */
.ai-search-results {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.relevant-files-section,
.insights-section,
.recommendations-section {
    margin-bottom: 30px;
}

.relevant-files-section h3,
.insights-section h3,
.recommendations-section h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}

.relevant-file-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.relevant-file-item h4 {
    margin: 0 0 10px 0;
    color: #007bff;
}

.relevance-score {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.relevance-score[data-score="high"] {
    background: #d4edda;
    color: #155724;
}

.relevance-score[data-score="medium"] {
    background: #fff3cd;
    color: #856404;
}

.relevance-score[data-score="low"] {
    background: #f8d7da;
    color: #721c24;
}

.explanation {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.insights-section ul,
.recommendations-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-section li,
.recommendations-section li {
    padding: 10px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

.insights-section li {
    border-left-color: #17a2b8;
}

.recommendations-section li {
    border-left-color: #ffc107;
}

/* Loading State */
.ai-search-loading {
    text-align: center;
    padding: 20px;
}

.ai-search-loading i {
    font-size: 24px;
    color: #007bff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Section Transitions */
.dashboard-section {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.dashboard-section.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Upload History Section */
#history-section {
    display: none;
    opacity: 0;
    visibility: hidden;
}

#history-section.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.upload-history-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background: #fff;
    margin-top: 20px;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.history-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.history-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.history-item p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* Remove conflicting animations */
.dashboard-section.active {
    animation: none;
}

/* Active Tab Styles */
.dashboard-nav a.active {
    background: #f0f2f5;
    color: #007bff;
}

.dashboard-nav a.active i {
    color: #007bff;
}

/* Tab Content Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section.active {
    animation: fadeIn 0.3s ease-out;
} 