/* 28 Days Challenge Plugin Styles */

.tdc-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tdc-header {
    text-align: center;
    margin-bottom: 30px;
}

.tdc-header h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

.tdc-progress {
    margin: 20px 0;
}

.tdc-progress-bar {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tdc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    border-radius: 15px;
}

.tdc-progress-text {
    text-align: center;
    font-weight: 600;
    color: #555;
    margin: 5px 0;
}

.tdc-day-form {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tdc-day-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.tdc-day-completed {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.tdc-day-completed p {
    color: #2e7d32;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.tdc-form-section {
    margin-bottom: 30px;
}

.tdc-form-section h4 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.tdc-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.tdc-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.tdc-input::placeholder {
    color: #999;
}

.tdc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 5px;
}

.tdc-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.tdc-btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tdc-btn-secondary {
    background-color: #2196F3;
    color: white;
}

.tdc-btn-secondary:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tdc-btn-close {
    background-color: #f44336;
    color: white;
}

.tdc-btn-close:hover {
    background-color: #d32f2f;
}

.tdc-actions {
    text-align: center;
    margin-top: 20px;
}

.tdc-congratulations {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.tdc-congratulations h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.tdc-congratulations p {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tdc-history {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tdc-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.tdc-history-header h2 {
    color: #333;
    margin: 0;
}

.tdc-history-content {
    max-height: 600px;
    overflow-y: auto;
}

.tdc-history-day {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.tdc-history-day h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.tdc-entry-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.tdc-history-section {
    margin-bottom: 20px;
}

.tdc-history-section h4 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.tdc-history-section ol {
    margin-left: 20px;
    padding-left: 20px;
}

.tdc-history-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

.tdc-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.tdc-message-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4CAF50;
}

.tdc-message-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .tdc-history-printable,
    .tdc-history-printable * {
        visibility: visible;
    }
    
    .tdc-history-printable {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .tdc-print-header {
        text-align: center;
        margin-bottom: 30px;
        page-break-after: avoid;
    }
    
    .tdc-print-header h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .tdc-print-date {
        color: #666;
        font-size: 0.9em;
    }
    
    .tdc-history-day {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .tdc-btn {
        display: none;
    }
    
    .tdc-actions {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tdc-container {
        padding: 10px;
    }
    
    .tdc-day-form {
        padding: 20px;
    }
    
    .tdc-congratulations {
        padding: 20px;
    }
    
    .tdc-congratulations h2 {
        font-size: 2em;
    }
    
    .tdc-history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tdc-history-header h2 {
        margin-bottom: 10px;
    }
}

