/**
 * Admin Styles
 * Save as: assets/admin.css
 */

 .tmmd-admin-wrap {
    margin: 20px 20px 20px 0;
}

.tmmd-admin-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tmmd-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 20px;
    border-radius: 4px;
}

.tmmd-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tmmd-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-left: 20px;
}

.tmmd-column-list li {
    background: #f0f0f1;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 13px;
}

#tmmd-import-form input[type="file"] {
    padding: 5px;
    border: 2px dashed #ccd0d4;
    border-radius: 4px;
    background: #f9f9f9;
    width: 100%;
    max-width: 400px;
}

.button .dashicons {
    line-height: 28px;
    margin-right: 5px;
}

.button-large .dashicons {
    line-height: 32px;
}

#tmmd-import-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

#tmmd-import-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#tmmd-import-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tmmd-progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f1;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.tmmd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 1.5s infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.tmmd-progress-text {
    text-align: center;
    font-weight: 500;
    color: #2271b1;
}

.tmmd-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.tmmd-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.tmmd-stat-item .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #2271b1;
}

.tmmd-stat-item strong {
    display: block;
    font-size: 24px;
    color: #2271b1;
}

.tmmd-stat-item p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

.tmmd-shortcode {
    display: inline-block;
    background: #f0f0f1;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0;
    border: 1px solid #ccd0d4;
    user-select: all;
}

.tmmd-copy-shortcode {
    margin-left: 10px;
}

.tmmd-meta-table {
    border-collapse: collapse;
    width: 100%;
}

.tmmd-meta-table th {
    text-align: left;
    padding: 10px;
    width: 200px;
    font-weight: 600;
}

.tmmd-meta-table td {
    padding: 10px;
}

.tmmd-meta-table input[type="text"] {
    width: 100%;
}

/* Responsive */
@media (max-width: 782px) {
    .tmmd-admin-container {
        grid-template-columns: 1fr;
    }
    
    .tmmd-column-list {
        grid-template-columns: 1fr;
    }
}