/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.upload-area.highlight {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.upload-area p {
    margin-bottom: 15px;
    color: #7f8c8d;
}

/* Button Styles */
button {
    cursor: pointer;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: #3498db;
    color: white;
}

.primary-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.secondary-button:hover {
    background-color: #bdc3c7;
}

#browse-button {
    background-color: #ecf0f1;
    color: #2c3e50;
}

#browse-button:hover {
    background-color: #bdc3c7;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

thead {
    background-color: #f2f2f2;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Widget Styles */
#widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: relative;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.widget-controls {
    display: flex;
    gap: 5px;
}

.widget-control-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #7f8c8d;
    padding: 5px;
}

.widget-control-button:hover {
    color: #2c3e50;
}

.widget-chart-container {
    height: 250px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.header-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.about-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.about-content h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.about-content ul, .about-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-content li {
    margin-bottom: 5px;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.close-button:hover {
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Footer Styles */
.footer {
    text-align: center !inportant;
    alignment: center;
    padding: 15px 0;
    margin-top: 30px;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    background-color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    #widgets-container {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 15px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .footer {
        padding: 10px 0;
        margin-top: 20px;
    }
}