/* CSS Styles for ManyConvert KPI Monitoring System */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #2980b9;
}

/* Header */
header {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    margin-bottom: 20px;
}

header h1 {
    color: white;
    margin-bottom: 5px;
}

/* Navigation */
.main-nav {
    background-color: white;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 10px;
}

.nav-links a {
    display: block;
    padding: 15px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-name {
    margin-right: 15px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.btn:hover {
    background-color: #2980b9;
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

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

.btn-success:hover {
    background-color: #27ae60;
}

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

.btn-warning:hover {
    background-color: #e67e22;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input {
    margin-right: 5px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    color: white;
}

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

.alert-warning {
    background-color: var(--warning-color);
}

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

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

.dashboard-title {
    margin-bottom: 0;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

/* Summary Metrics */
.summary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.metric-title {
    margin-bottom: 10px;
    font-size: 16px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.metric-trend {
    font-size: 14px;
    margin-bottom: 10px;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

.trend-neutral {
    color: var(--warning-color);
}

.progress-bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-card {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.team-name {
    margin-bottom: 5px;
    font-size: 18px;
}

.team-role {
    color: #777;
    margin-bottom: 0;
}

.team-metrics {
    margin-bottom: 15px;
}

.team-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.team-metric-label {
    font-weight: 500;
}

.team-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* KPI Cards */
.kpi-card {
    padding: 15px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
}

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

.kpi-title {
    margin-bottom: 0;
    font-size: 16px;
}

.kpi-value {
    font-size: 18px;
    font-weight: 700;
}

.kpi-target {
    color: #777;
    font-size: 14px;
}

.kpi-progress {
    margin: 10px 0;
}

.kpi-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

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

.status-warning {
    background-color: var(--warning-color);
}

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

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: #f9f9f9;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 50px 0;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin-bottom: 0;
}

.modal-body {
    margin-bottom: 20px;
}

/* Profile Page */
.profile-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-sidebar {
    flex: 1;
    max-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.profile-image {
    text-align: center;
    margin-bottom: 20px;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h3 {
    margin-bottom: 10px;
}

.profile-info p {
    margin-bottom: 10px;
    color: #777;
}

.profile-content {
    flex: 2;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.kpi-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    flex: 1;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: var(--border-radius);
    text-align: center;
}

.summary-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
}

.summary-value.success {
    color: var(--success-color);
}

.summary-value.warning {
    color: var(--warning-color);
}

.summary-value.danger {
    color: var(--danger-color);
}

.kpi-category {
    margin-bottom: 30px;
}

.kpi-category h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.empty-state {
    text-align: center;
    padding: 50px 0;
    color: #777;
}

.empty-state i {
    margin-bottom: 15px;
    color: #ddd;
}

/* Reports Page */
.report-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.report-section {
    margin-bottom: 40px;
}

.report-section h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.chart-container {
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 300px;
    background-color: #f5f7fa;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #777;
    margin-bottom: 20px;
}

.recommendations ul {
    padding-left: 20px;
}

.recommendations li {
    margin-bottom: 10px;
}

.category-section {
    margin-bottom: 30px;
}

.category-section h5 {
    margin-bottom: 15px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    margin-bottom: 0;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

footer p {
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-menu {
        margin-top: 10px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        max-width: 100%;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .dashboard-header, .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-actions, .page-actions {
        margin-top: 10px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
}
