/* Matemática do Coração - Frontend Styles */

/* Reset and Base Styles */
.mdc-form-container,
.mdc-dashboard,
.mdc-emotion-management {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Form Styles */
.mdc-emotion-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mdc-form-step {
    display: none;
    padding: 30px;
}

.mdc-form-step.active {
    display: block;
}

.mdc-step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

/* Emotions Grid */
.mdc-emotions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.mdc-quadrant {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mdc-quadrant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.mdc-quadrant-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.mdc-quadrant-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.mdc-emotions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.mdc-emotion-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.mdc-emotion-btn:hover {
    border-color: #45b7d1;
    background: #f0f9ff;
    color: #45b7d1;
}

.mdc-emotion-btn.selected {
    background: #45b7d1;
    border-color: #45b7d1;
    color: #fff;
}

.mdc-add-emotion-btn {
    background: transparent;
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 100%;
}

.mdc-add-emotion-btn:hover {
    border-color: #45b7d1;
    color: #45b7d1;
}

/* Intensity Slider */
.mdc-emotion-intensity {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.mdc-intensity-slider {
    position: relative;
    margin: 20px 0;
}

.mdc-intensity-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.mdc-intensity-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #45b7d1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mdc-intensity-slider input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #45b7d1;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mdc-intensity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.mdc-intensity-description {
    text-align: center;
    font-weight: 600;
    color: #45b7d1;
    margin-top: 10px;
}

/* Form Fields */
.mdc-form-fields {
    display: grid;
    gap: 20px;
}

.mdc-field-group {
    display: flex;
    flex-direction: column;
}

.mdc-field-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.mdc-field-group input,
.mdc-field-group select,
.mdc-field-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mdc-field-group input:focus,
.mdc-field-group select:focus,
.mdc-field-group textarea:focus {
    outline: none;
    border-color: #45b7d1;
    box-shadow: 0 0 0 3px rgba(69, 183, 209, 0.1);
}

.mdc-field-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Technique Media */
.mdc-technique-media {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.mdc-video-container,
.mdc-audio-container {
    position: relative;
    width: 100%;
    margin: 15px 0;
}

.mdc-video-container {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.mdc-video-iframe,
.mdc-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.mdc-audio {
    width: 100%;
    border-radius: 8px;
}

/* Buttons */
.mdc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.mdc-btn-primary {
    background: #45b7d1;
    color: #fff;
}

.mdc-btn-primary:hover {
    background: #3a9bc1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 183, 209, 0.3);
}

.mdc-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

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

/* Form Navigation */
.mdc-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Messages */
.mdc-form-messages {
    margin-top: 20px;
}

.mdc-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.mdc-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mdc-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal */
.mdc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdc-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.mdc-modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mdc-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.mdc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdc-modal-body {
    padding: 20px;
}

.mdc-modal-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Dashboard Styles */
.mdc-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.mdc-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.mdc-dashboard-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.mdc-dashboard-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.mdc-filter-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.mdc-filter-group label {
    font-weight: 600;
    margin-right: 8px;
    color: #2c3e50;
}

.mdc-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Statistics Cards */
.mdc-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mdc-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mdc-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #45b7d1;
    margin-bottom: 5px;
}

.mdc-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Charts */
.mdc-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.mdc-chart-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mdc-chart-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.mdc-chart-wrapper {
    position: relative;
    height: 300px;
}

/* Records */
.mdc-records-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mdc-records-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.mdc-record-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.mdc-record-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mdc-record-date {
    font-weight: 600;
    color: #2c3e50;
}

.mdc-record-emotion {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.mdc-record-emotion.mdc-desgastante-ativa {
    background: #ff6b6b;
}

.mdc-record-emotion.mdc-desgastante-inativa {
    background: #4ecdc4;
}

.mdc-record-emotion.mdc-renovadora-ativa {
    background: #45b7d1;
}

.mdc-record-emotion.mdc-renovadora-inativa {
    background: #96ceb4;
}

.mdc-record-intensity {
    font-size: 14px;
    color: #666;
}

.mdc-record-content {
    padding: 20px;
}

.mdc-record-field {
    margin-bottom: 15px;
}

.mdc-record-field:last-child {
    margin-bottom: 0;
}

.mdc-record-field strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.mdc-record-field p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Pagination */
.mdc-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.mdc-page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mdc-page-btn:hover {
    background: #f8f9fa;
    border-color: #45b7d1;
}

.mdc-page-btn.active {
    background: #45b7d1;
    color: #fff;
    border-color: #45b7d1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mdc-emotions-grid {
        grid-template-columns: 1fr;
    }
    
    .mdc-charts-container {
        grid-template-columns: 1fr;
    }
    
    .mdc-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mdc-form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .mdc-record-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mdc-filter-group {
        display: block;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .mdc-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .mdc-emotion-form {
        margin: 10px;
    }
    
    .mdc-form-step {
        padding: 20px;
    }
    
    .mdc-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Loading States */
.mdc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #45b7d1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.mdc-text-center {
    text-align: center;
}

.mdc-mb-20 {
    margin-bottom: 20px;
}

.mdc-mt-20 {
    margin-top: 20px;
}

.mdc-hidden {
    display: none;
}

.mdc-no-records {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}
