/**
 * CT Organizer Dashboard Styles
 */




/* Dashboard Container */
.ctod-dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Quick Stats Grid */
.ctod-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ctod-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ctod-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ctod-stat-card .stat-icon {
    font-size: 32px;
    color: #0073aa;
    margin-bottom: 10px;
}

.ctod-stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #23282d;
    margin: 10px 0 5px;
}

.ctod-stat-card .stat-label {
    font-size: 14px;
    color: #7e8993;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ctod-stat-card .stat-change {
    font-size: 12px;
    margin-top: 8px;
}

.ctod-stat-card .stat-change.positive {
    color: #46b450;
}

.ctod-stat-card .stat-change.negative {
    color: #dc3232;
}

/* Section Containers */
.ctod-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ctod-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
}

.ctod-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #23282d;
    margin: 0;
}

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

/* Notifications */
.ctod-notifications {
    max-height: 400px;
    overflow-y: auto;
}

.ctod-notification {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f1;
    transition: background 0.2s;
}

.ctod-notification:hover {
    background: #f9f9f9;
}

.ctod-notification.unread {
    background: #e7f5fe;
}

.ctod-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.ctod-notification-icon.info {
    background: #e7f5fe;
    color: #0073aa;
}

.ctod-notification-icon.success {
    background: #ecf7ed;
    color: #46b450;
}

.ctod-notification-icon.warning {
    background: #fff8e5;
    color: #f0b849;
}

.ctod-notification-content {
    flex: 1;
}

.ctod-notification-title {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.ctod-notification-message {
    font-size: 14px;
    color: #50575e;
    margin-bottom: 5px;
}

.ctod-notification-time {
    font-size: 12px;
    color: #7e8993;
}

/* Events Table */
.ctod-events-table {
    width: 100%;
    border-collapse: collapse;
}

.ctod-events-table thead {
    background: #f9f9f9;
}

.ctod-events-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #50575e;
    border-bottom: 2px solid #e5e5e5;
}

.ctod-events-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f1;
}

.ctod-events-table tr:hover {
    background: #f9f9f9;
}

.ctod-event-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ctod-event-status.upcoming {
    background: #e7f5fe;
    color: #0073aa;
}

.ctod-event-status.ongoing {
    background: #ecf7ed;
    color: #46b450;
}

.ctod-event-status.past {
    background: #f0f0f1;
    color: #7e8993;
}

.ctod-event-status.sold-out {
    background: #fcf0f1;
    color: #dc3232;
}

/* Progress Bar */
.ctod-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 5px 0;
}

.ctod-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Chart Container */
.ctod-analytics-chart-wrapper {
    margin: 20px 0;
}

.ctod-chart-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ctod-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ctod-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    text-transform: uppercase;
}

.ctod-filter-group select,
.ctod-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ctod-filter-apply {
    align-self: flex-end;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.ctod-filter-apply:hover {
    background: #005a87;
}

.ctod-analytics-chart-container {
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.ctod-chart-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* File Manager */
.ctod-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ctod-file-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

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

.ctod-file-icon {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 10px;
}

.ctod-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
    word-break: break-word;
}

.ctod-file-size {
    font-size: 12px;
    color: #7e8993;
    margin-bottom: 10px;
}

.ctod-file-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.ctod-file-action {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.ctod-file-action.download {
    background: #0073aa;
    color: #fff;
}

.ctod-file-action.download:hover {
    background: #005a87;
}

.ctod-file-action.delete {
    background: #dc3232;
    color: #fff;
}

.ctod-file-action.delete:hover {
    background: #a00;
}

/* Upload Area */
.ctod-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.ctod-upload-area:hover,
.ctod-upload-area.dragging {
    border-color: #0073aa;
    background: #e7f5fe;
}

.ctod-upload-icon {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 15px;
}

.ctod-upload-text {
    font-size: 16px;
    color: #50575e;
    margin-bottom: 10px;
}

.ctod-upload-subtext {
    font-size: 12px;
    color: #7e8993;
}

/* Service Request Cards */
.ctod-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Service Request Cards */
.ctod-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ctod-service-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ctod-service-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.ctod-service-icon {
    font-size: 40px;
    color: #0073aa;
    margin-bottom: 15px;
}

.ctod-service-name {
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 10px;
}

.ctod-service-description {
    font-size: 14px;
    color: #50575e;
    margin-bottom: 15px;
    line-height: 1.6;
}

.ctod-service-pricing {
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 15px;
}

.ctod-service-request-btn {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ctod-service-request-btn:hover {
    background: #005a87;
}

/* Service Request Status */
.ctod-request-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ctod-request-status.pending {
    background: #fff8e5;
    color: #f0b849;
}

.ctod-request-status.in-progress {
    background: #e7f5fe;
    color: #0073aa;
}

.ctod-request-status.completed {
    background: #ecf7ed;
    color: #46b450;
}

.ctod-request-status.cancelled {
    background: #fcf0f1;
    color: #dc3232;
}

/* Forms */
.ctod-form {
    max-width: 600px;
}

.ctod-form-group {
    margin-bottom: 20px;
}

.ctod-form-label {
    display: block;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 8px;
}

.ctod-form-input,
.ctod-form-select,
.ctod-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ctod-form-input:focus,
.ctod-form-select:focus,
.ctod-form-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.ctod-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.ctod-form-help {
    font-size: 12px;
    color: #7e8993;
    margin-top: 5px;
}

.ctod-form-error {
    font-size: 12px;
    color: #dc3232;
    margin-top: 5px;
}

.ctod-form-submit {
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ctod-form-submit:hover {
    background: #005a87;
}

.ctod-form-submit:disabled {
    background: #7e8993;
    cursor: not-allowed;
}

/* Modal/Dialog */
.ctod-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ctod-modal.active {
    display: flex;
}

.ctod-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ctod-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ctod-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #23282d;
    margin: 0;
}

.ctod-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7e8993;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.ctod-modal-close:hover {
    background: #f0f0f1;
}

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

.ctod-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Alerts */
.ctod-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctod-alert-icon {
    font-size: 20px;
}

.ctod-alert.info {
    background: #e7f5fe;
    border-left: 4px solid #0073aa;
    color: #005a87;
}

.ctod-alert.success {
    background: #ecf7ed;
    border-left: 4px solid #46b450;
    color: #2e7d32;
}

.ctod-alert.warning {
    background: #fff8e5;
    border-left: 4px solid #f0b849;
    color: #996800;
}

.ctod-alert.error {
    background: #fcf0f1;
    border-left: 4px solid #dc3232;
    color: #a00;
}

/* Support Tickets */
.ctod-ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctod-ticket-item {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.2s;
    cursor: pointer;
}

.ctod-ticket-item:hover {
    background: #f9f9f9;
}

.ctod-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ctod-ticket-subject {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.ctod-ticket-meta {
    font-size: 12px;
    color: #7e8993;
}

.ctod-ticket-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ctod-ticket-status.open {
    background: #e7f5fe;
    color: #0073aa;
}

.ctod-ticket-status.awaiting {
    background: #fff8e5;
    color: #f0b849;
}

.ctod-ticket-status.resolved {
    background: #ecf7ed;
    color: #46b450;
}

/* Embed Code Display */
.ctod-embed-code {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #23282d;
    overflow-x: auto;
    position: relative;
}

.ctod-embed-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.ctod-embed-copy-btn:hover {
    background: #005a87;
}

/* Calendar View */
.ctod-calendar {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.ctod-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
}

.ctod-calendar-nav {
    display: flex;
    gap: 10px;
}

.ctod-calendar-nav-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.ctod-calendar-nav-btn:hover {
    background: #f0f0f1;
}

.ctod-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e5e5;
}

.ctod-calendar-day-header {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #50575e;
    background: #f9f9f9;
}

.ctod-calendar-day {
    min-height: 100px;
    padding: 8px;
    background: #fff;
    position: relative;
}

.ctod-calendar-day.other-month {
    background: #f9f9f9;
    color: #7e8993;
}

.ctod-calendar-day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.ctod-calendar-event {
    font-size: 11px;
    padding: 2px 6px;
    background: #e7f5fe;
    color: #0073aa;
    border-radius: 2px;
    margin-bottom: 2px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctod-calendar-event:hover {
    background: #0073aa;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ctod-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ctod-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ctod-chart-filters {
        flex-direction: column;
    }
    
    .ctod-filter-apply {
        align-self: stretch;
    }
    
    .ctod-service-grid {
        grid-template-columns: 1fr;
    }
    
    .ctod-file-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .ctod-events-table {
        font-size: 14px;
    }
    
    .ctod-events-table th,
    .ctod-events-table td {
        padding: 8px;
    }
    
    .ctod-calendar-day {
        min-height: 80px;
        padding: 5px;
    }
}

/* Loading States */
.ctod-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ctod-spinner {
    border: 3px solid #f0f0f1;
    border-top-color: #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ctod-spin 0.8s linear infinite;
}

@keyframes ctod-spin {
    to { transform: rotate(360deg); }
}

/* Empty States */
.ctod-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7e8993;
}

.ctod-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.ctod-empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #50575e;
    margin-bottom: 10px;
}

.ctod-empty-state-description {
    font-size: 14px;
    margin-bottom: 20px;
}

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

.ctod-text-right {
    text-align: right;
}

.ctod-mt-10 {
    margin-top: 10px;
}

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

.ctod-mb-10 {
    margin-bottom: 10px;
}

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

.ctod-flex {
    display: flex;
}

.ctod-flex-gap-10 {
    gap: 10px;
}

.ctod-flex-between {
    justify-content: space-between;
}

.ctod-flex-center {
    justify-content: center;
    align-items: center;
}

.ctod-hidden {
    display: none;
}





/* */
/* Elementor Dashboard Widget Navigation Styles */

.ctod-elementor-dashboard {
    width: 100%;
}

/* Horizontal Navigation */
.ctod-nav-horizontal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: visible;
}

.ctod-nav-horizontal ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ctod-nav-horizontal ul li {
    margin: 0;
}

.ctod-nav-horizontal ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.ctod-nav-horizontal ul li a:hover {
    background: #f5f5f5;
    color: #0073aa;
}

.ctod-nav-horizontal ul li a.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #f9f9f9;
}

.ctod-nav-horizontal ul li a .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Vertical Navigation */
.ctod-nav-vertical {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 250px;
    float: left;
    margin-right: 30px;
}

.ctod-nav-vertical ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ctod-nav-vertical ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.ctod-nav-vertical ul li a:hover {
    background: #f5f5f5;
    color: #0073aa;
}

.ctod-nav-vertical ul li a.active {
    color: #0073aa;
    border-left-color: #0073aa;
    background: #f9f9f9;
}

.ctod-nav-vertical + .ctod-dashboard-content {
    margin-left: 280px;
}

/* Dropdown Navigation */
.ctod-nav-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 30px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.ctod-nav-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Dashboard Content Area */
.ctod-dashboard-content {
    width: 100%;
    clear: both;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ctod-nav-horizontal ul {
        flex-direction: column;
    }
    
    .ctod-nav-horizontal ul li {
        width: 100%;
    }
    
    .ctod-nav-horizontal ul li a {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .ctod-nav-horizontal ul li a.active {
        border-bottom: none;
        border-left-color: #0073aa;
    }
    
    .ctod-nav-vertical {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .ctod-nav-vertical + .ctod-dashboard-content {
        margin-left: 0;
    }
}
