/* WP Task Tracker - General Styles */
.wp-task-tracker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Button Styles */
.wtt-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wtt-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.wtt-button.secondary {
    background: #6c757d;
}

.wtt-button.secondary:hover {
    background: #545b62;
}

.wtt-button.success {
    background: #28a745;
}

.wtt-button.success:hover {
    background: #218838;
}

.wtt-button.warning {
    background: #ffc107;
    color: #212529;
}

.wtt-button.warning:hover {
    background: #e0a800;
}

.wtt-button.danger {
    background: #dc3545;
}

.wtt-button.danger:hover {
    background: #c82333;
}

/* Status and Priority Badges */
.wtt-status-badge,
.wtt-priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Status Colors */
.wtt-status-open { background: #6c757d; color: white; }
.wtt-status-in-progress { background: #007bff; color: white; }
.wtt-status-blocked { background: #dc3545; color: white; }
.wtt-status-ready-for-review { background: #ffc107; color: #212529; }
.wtt-status-completed { background: #28a745; color: white; }

/* Priority Colors */
.wtt-priority-low { background: #d4edda; color: #155724; }
.wtt-priority-medium { background: #fff3cd; color: #856404; }
.wtt-priority-high { background: #f8d7da; color: #721c24; }
.wtt-priority-urgent { background: #f5c6cb; color: #721c24; }

/* Form Styles */
.wtt-form-group {
    margin-bottom: 20px;
}

.wtt-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
}

.wtt-form-group input,
.wtt-form-group select,
.wtt-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wtt-form-group input:focus,
.wtt-form-group select:focus,
.wtt-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wtt-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Card Styles */
.wtt-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.wtt-card-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.wtt-card-body {
    padding: 20px;
}

.wtt-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Alert Styles */
.wtt-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.wtt-alert.success {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}

.wtt-alert.warning {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeaa7;
}

.wtt-alert.error {
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
}

.wtt-alert.info {
    color: #004085;
    background: #cce7ff;
    border-color: #b3d7ff;
}

/* Loading Spinner */
.wtt-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: wtt-spin 1s ease-in-out infinite;
}

@keyframes wtt-spin {
    to { transform: rotate(360deg); }
}

/* Modal Styles */
.wtt-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: wtt-fade-in 0.2s ease;
}

.wtt-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes wtt-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wtt-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    animation: wtt-slide-up 0.2s ease;
}

@keyframes wtt-slide-up {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.wtt-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wtt-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.wtt-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wtt-modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.wtt-modal-body {
    padding: 20px;
}

.wtt-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    text-align: right;
}

.wtt-modal-footer .wtt-button {
    margin-left: 10px;
}

/* Utility Classes */
.wtt-text-center { text-align: center; }
.wtt-text-left { text-align: left; }
.wtt-text-right { text-align: right; }

.wtt-mb-10 { margin-bottom: 10px; }
.wtt-mb-15 { margin-bottom: 15px; }
.wtt-mb-20 { margin-bottom: 20px; }
.wtt-mb-30 { margin-bottom: 30px; }

.wtt-mt-10 { margin-top: 10px; }
.wtt-mt-15 { margin-top: 15px; }
.wtt-mt-20 { margin-top: 20px; }
.wtt-mt-30 { margin-top: 30px; }

.wtt-p-10 { padding: 10px; }
.wtt-p-15 { padding: 15px; }
.wtt-p-20 { padding: 20px; }

.wtt-d-none { display: none; }
.wtt-d-block { display: block; }
.wtt-d-inline { display: inline; }
.wtt-d-inline-block { display: inline-block; }
.wtt-d-flex { display: flex; }

.wtt-flex-wrap { flex-wrap: wrap; }
.wtt-justify-between { justify-content: space-between; }
.wtt-justify-center { justify-content: center; }
.wtt-align-center { align-items: center; }

.wtt-w-100 { width: 100%; }
.wtt-h-100 { height: 100%; }

.wtt-text-muted { color: #6c757d; }
.wtt-text-primary { color: #0073aa; }
.wtt-text-success { color: #28a745; }
.wtt-text-warning { color: #ffc107; }
.wtt-text-danger { color: #dc3545; }

.wtt-bg-light { background: #f8f9fa; }
.wtt-bg-white { background: white; }

.wtt-border { border: 1px solid #e9ecef; }
.wtt-border-top { border-top: 1px solid #e9ecef; }
.wtt-border-bottom { border-bottom: 1px solid #e9ecef; }
.wtt-border-left { border-left: 1px solid #e9ecef; }
.wtt-border-right { border-right: 1px solid #e9ecef; }

.wtt-rounded { border-radius: 4px; }
.wtt-rounded-lg { border-radius: 8px; }

/* Responsive Utilities */
@media (max-width: 768px) {
    .wtt-hide-mobile { display: none !important; }
    .wtt-modal-content { width: 95%; }
}

@media (min-width: 769px) {
    .wtt-hide-desktop { display: none !important; }
}

/* Print Styles */
@media print {
    .wtt-no-print { display: none !important; }
    
    .wtt-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .wtt-button {
        border: 1px solid #000 !important;
        background: white !important;
        color: #000 !important;
    }
}
