/* User Dashboard Styles */
.mknx-user-dashboard {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mknx-user-dashboard h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mknx-info-box {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Subscription Info */
.mknx-status-active {
    color: #46b450;
    font-weight: bold;
}

/* Today's Classes */
.mknx-upcoming-classes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mknx-upcoming-class-item {
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #0073aa;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.mknx-upcoming-class-item:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.mknx-class-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.mknx-class-title a {
    color: #0073aa;
    text-decoration: none;
}

.mknx-class-title a:hover {
    text-decoration: underline;
}

.mknx-class-details {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #666;
}

.mknx-class-time, .mknx-class-date {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.mknx-class-time i, .mknx-class-date i {
    margin-right: 5px;
    color: #0073aa;
}

.mknx-no-classes {
    color: #666;
    font-style: italic;
}

.mknx-view-all-classes {
    margin-top: 15px;
    text-align: center;
}

.mknx-view-all-classes .button {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.mknx-view-all-classes .button:hover {
    background-color: #005d87;
}

/* Dashboard Footer */
.mknx-dashboard-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mknx-dashboard-footer a {
    color: #0073aa;
    text-decoration: none;
}

.mknx-dashboard-footer a:hover {
    text-decoration: underline;
}

/* Attendance Styles */
.mknx-attendance-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.mknx-attendance-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mknx-mark-attendance {
    background-color: #0073aa;
    color: white;
}

.mknx-mark-attendance:hover {
    background-color: #005d87;
}

.mknx-attendance-marked {
    background-color: #46b450;
    color: white;
}

.mknx-attendance-marked .dashicons {
    margin-right: 5px;
}

.mknx-upcoming-class-item.mknx-attendance-marked {
    border-left-color: #46b450;
}

.mknx-loading {
    opacity: 0.7;
    cursor: wait;
}

.mknx-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.mknx-message-success {
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.mknx-message-error {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

/* Attendance History */
.mknx-attendance-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mknx-attendance-history-item {
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #0073aa;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mknx-attendance-class {
    font-weight: bold;
    margin-bottom: 5px;
}

.mknx-attendance-details {
    display: flex;
    font-size: 0.9em;
    color: #666;
}

.mknx-attendance-date, .mknx-attendance-payment {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.mknx-attendance-date i, .mknx-attendance-payment i {
    margin-right: 5px;
    color: #0073aa;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .mknx-info-box {
        padding: 15px;
    }
    
    .mknx-class-details {
        flex-direction: column;
    }
    
    .mknx-class-time, .mknx-class-date {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .mknx-attendance-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
}
