/* UploadMate Admin Styles */

.uploadmate-admin-file {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.uploadmate-admin-file h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 14px;
}

.uploadmate-admin-file p {
    margin: 5px 0;
    font-size: 13px;
}

.uploadmate-admin-file a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.uploadmate-admin-file a:hover {
    text-decoration: underline;
}

/* Order Meta Box Styles */
#uploadmate-files .inside {
    padding: 12px;
}

.uploadmate-order-files {
    max-height: 400px;
    overflow-y: auto;
}

.uploadmate-file-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
}

.uploadmate-file-item:last-child {
    margin-bottom: 0;
}
.uploadmate-file-item .uploadmate-item-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}
.uploadmate-file-item .uploadmate-file-link {
    margin: 0;
}

.uploadmate-file-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.uploadmate-file-item p {
    margin: 0;
}

.uploadmate-file-item .button {
    font-size: 12px;
    padding: 4px 8px;
    height: auto;
    line-height: 1.4;
}

.uploadmate-file-item .button:before {
    content: "📎 ";
    margin-right: 4px;
}
.uploadmate-no-files {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Settings Page Styles */
.uploadmate-pro-banner {
    background: linear-gradient(135deg, #0073aa, #005177);
    color: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.uploadmate-pro-banner h2 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.uploadmate-pro-banner p {
    margin: 0 0 15px 0;
    font-size: 16px;
    opacity: 0.9;
}

.uploadmate-pro-features {
    margin: 15px 0;
    padding-left: 25px;
    columns: 2;
    column-gap: 30px;
}

.uploadmate-pro-features li {
    margin-bottom: 8px;
    font-size: 14px;
    break-inside: avoid;
}

.uploadmate-upgrade-btn {
    background: white !important;
    color: #0073aa !important;
    border: none !important;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.uploadmate-upgrade-btn:hover {
    background: #f0f0f0 !important;
    color: #005177 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.uploadmate-pro-banner ul {
    margin: 15px 0;
    padding-left: 25px;
    columns: 2;
    column-gap: 30px;
}

.uploadmate-pro-banner ul li {
    margin-bottom: 8px;
    font-size: 14px;
    break-inside: avoid;
}

.uploadmate-pro-banner .button-light {
    background: white;
    color: #0073aa;
    border: none;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.uploadmate-pro-banner .button-light:hover {
    background: #f0f0f0;
    color: #005177;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Settings Form Styles */
.form-table th {
    font-weight: 600;
    color: #333;
}

.form-table td input[type="checkbox"] {
    margin-right: 8px;
}

.form-table td label {
    font-size: 14px;
    color: #555;
}

/* Empty State */
.uploadmate-order-files p {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Responsive Design for Admin */
@media (max-width: 782px) {
    .uploadmate-pro-banner {
        padding: 20px 15px;
    }
    
    .uploadmate-pro-banner h2 {
        font-size: 20px;
    }
    
    .uploadmate-pro-banner ul {
        columns: 1;
    }
    
     .uploadmate-pro-features {
        columns: 1;
    }

    .uploadmate-file-item {
        padding: 10px;
    }
    
    .uploadmate-admin-file {
        padding: 12px;
    }
}

/* WordPress Admin Color Scheme Compatibility */
.admin-color-blue .uploadmate-pro-banner {
    background: linear-gradient(135deg, #096484, #07526c);
}

.admin-color-coffee .uploadmate-pro-banner {
    background: linear-gradient(135deg, #59524c, #46403c);
}

.admin-color-ectoplasm .uploadmate-pro-banner {
    background: linear-gradient(135deg, #523f6d, #46345a);
}

.admin-color-midnight .uploadmate-pro-banner {
    background: linear-gradient(135deg, #363b3f, #2c3136);
}

.admin-color-ocean .uploadmate-pro-banner {
    background: linear-gradient(135deg, #5fb3d4, #4f9dc9);
}

.admin-color-sunrise .uploadmate-pro-banner {
    background: linear-gradient(135deg, #dd823b, #c36922);
}

/* File Type Icons */
.uploadmate-file-item .button:before {
    content: "📎 ";
}

.uploadmate-file-item[data-file-type="pdf"] .button:before {
    content: "📄 ";
}

.uploadmate-file-item[data-file-type="doc"] .button:before,
.uploadmate-file-item[data-file-type="docx"] .button:before {
    content: "📝 ";
}

.uploadmate-file-item[data-file-type="jpg"] .button:before,
.uploadmate-file-item[data-file-type="jpeg"] .button:before,
.uploadmate-file-item[data-file-type="png"] .button:before,
.uploadmate-file-item[data-file-type="gif"] .button:before {
    content: "🖼️ ";
}

.uploadmate-file-item[data-file-type="zip"] .button:before {
    content: "🗜️ ";
}

/* Loading State */
.uploadmate-loading {
    opacity: 0.6;
    pointer-events: none;
}

.uploadmate-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}