/* Main frontend styles */
.ielts-plan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ielts-plan-container.premium-layout {
    display: flex;
    gap: 30px;
}

.ielts-progress-column {
    flex: 0 0 300px;
}

.ielts-content-column {
    flex: 1;
    background-color: transparent !important;
}

.ielts-day-card, .ielts-progress-card, .ielts-feedback-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.ielts-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ielts-activity {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.activity-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.activity-category {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eee;
}

.activity-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.ielts-plan-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ielts-feedback-box {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.feedback-content {
    line-height: 1.6;
}

/* Progress circle styles */
.ielts-progress-circle {
    text-align: center;
    margin: 20px 0;
}

.circle-progress {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
}

.circle-chart {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3;
}

.circle-fill {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 3;
    stroke-linecap: round;
}

.circle-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circle-percent {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.circle-text {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Button styles */
.ielts-plan-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.ielts-plan-button:hover {
    background: #135e96;
}

.ielts-plan-button.primary {
    background: #2271b1;
}

.ielts-plan-button.secondary {
    background: #646970;
}

.ielts-plan-button.danger {
    background: #d63638;
}

.ielts-plan-button[disabled] {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading spinner */
.dashicons.spin {
    animation: dashicons-spin 1s infinite linear;
}

@keyframes dashicons-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Plan selection grid */
.ielts-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ielts-plan-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ielts-plan-card h3 {
    margin-top: 0;
    color: #2271b1;
}

.plan-description {
    color: #666;
    margin: 10px 0;
}

.plan-duration {
    font-weight: bold;
    color: #d54e21;
}

.ielts-login-message {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.day-progress-indicator {
    font-size: 14px;
    color: #666;
}

.ielts-no-activities {
    text-align: center;
    padding: 20px;
    color: #666;
}

.ielts-feedback-list h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Custom styles */
.hentry .ielts-plans-grid .ielts-plan-card {
    border-style: solid;
    border-width: 2px;
    border-color: #e6e4e4;
    text-align: center;
}

.ielts-plans-grid .ielts-plan-card h3 {
    color: #2b0442;
}

.ielts-plans-grid .ielts-plan-card .plan-duration {
    text-align: center;
    color: #e67e22;
}

.ielts-plans-grid .ielts-plan-card .ielts-plan-button {
    text-align: center;
}

.hentry .ielts-progress-column .ielts-progress-card {
    text-align: center;
}

.ielts-progress-column .ielts-progress-card .ielts-plan-actions {
    text-align: center;
}

.hentry .ielts-content-column {
    background-color: transparent !important;
}

.hentry .ielts-day-card .ielts-day-header {
    font-size: 18px;
}

.ielts-day-card .ielts-day-header h2 {
    font-size: 22px;
}

.ielts-day-card .ielts-activities .ielts-activity {
    border-style: none;
}

.ielts-activity .activity-header span {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 5px;
    padding-bottom: -5px;
    margin-left: 8px;
}

.ielts-progress-card .ielts-plan-actions .ielts-plan-button {
    position: static;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .ielts-plan-container.premium-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .ielts-progress-column {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .ielts-content-column {
        width: 100%;
    }
    
    .ielts-progress-card,
    .ielts-day-card {
        display: block !important;
        width: 100%;
    }
    
    .ielts-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ielts-activity {
        flex-direction: column;
        gap: 10px;
    }
    
    .activity-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .ielts-plan-actions {
        justify-content: center;
    }
    
    .ielts-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .circle-progress {
        width: 100px;
        height: 100px;
    }
    
    .circle-percent {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ielts-plan-container {
        padding: 15px;
    }
    
    .ielts-day-card, 
    .ielts-progress-card, 
    .ielts-feedback-list {
        padding: 15px;
    }
    
    .ielts-day-card .ielts-day-header h2 {
        font-size: 20px;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .ielts-plan-actions {
        flex-direction: column;
    }
    
    .ielts-plan-button {
        justify-content: center;
    }
}

/* Ensure content column is always visible */
.ielts-content-column {
    display: block !important;
}