

.wpdm-download-package {
margin: 20px 0;
border: 1px solid #e0e0e0;
border-radius: 8px;
overflow: hidden;
transition: box-shadow 0.3s ease;
}
.wpdm-download-package:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.wpdm-package-header {
padding: 15px 20px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-bottom: 1px solid #dee2e6;
}
.wpdm-package-title {
font-size: 1.25rem;
font-weight: 600;
margin: 0 0 5px 0;
color: #343a40;
}
.wpdm-package-meta {
font-size: 0.875rem;
color: #6c757d;
display: flex;
gap: 15px;
flex-wrap: wrap;
}
.wpdm-package-content {
padding: 20px;
}
.wpdm-package-description {
margin-bottom: 15px;
line-height: 1.6;
color: #495057;
}
.wpdm-package-stats {
display: flex;
gap: 20px;
margin-bottom: 15px;
padding: 10px 0;
border-top: 1px solid #f0f0f0;
font-size: 0.875rem;
}
.wpdm-stat-item {
display: flex;
align-items: center;
gap: 5px;
color: #6c757d;
}
.wpdm-stat-item i {
color: #007cba;
}
.wpdm-download-button {
background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
color: white;
padding: 12px 24px;
border: none;
border-radius: 6px;
font-weight: 500;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
cursor: pointer;
}
.wpdm-download-button:hover {
background: linear-gradient(135deg, #005a87 0%, #004567 100%);
color: white;
text-decoration: none;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}
.wpdm-download-button:active {
transform: translateY(0);
}
.wpdm-download-button.disabled {
background: #6c757d;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.wpdm-download-button i {
font-size: 1.1em;
}
.wpdm-file-list {
background: #f8f9fa;
border-radius: 6px;
overflow: hidden;
margin: 15px 0;
}
.wpdm-file-list-header {
background: #e9ecef;
padding: 10px 15px;
font-weight: 600;
color: #495057;
border-bottom: 1px solid #dee2e6;
}
.wpdm-file-item {
display: flex;
align-items: center;
padding: 12px 15px;
border-bottom: 1px solid #e9ecef;
transition: background-color 0.2s ease;
}
.wpdm-file-item:last-child {
border-bottom: none;
}
.wpdm-file-item:hover {
background: #f1f3f4;
}
.wpdm-file-icon {
width: 24px;
height: 24px;
margin-right: 12px;
color: #007cba;
}
.wpdm-file-info {
flex: 1;
}
.wpdm-file-name {
font-weight: 500;
color: #343a40;
margin-bottom: 2px;
}
.wpdm-file-size {
font-size: 0.875rem;
color: #6c757d;
}
.wpdm-file-actions {
display: flex;
gap: 8px;
}
.wpdm-file-download {
background: #28a745;
color: white;
padding: 6px 12px;
border: none;
border-radius: 4px;
font-size: 0.875rem;
text-decoration: none;
transition: background-color 0.2s ease;
}
.wpdm-file-download:hover {
background: #218838;
color: white;
text-decoration: none;
}
.wpdm-lock-container {
background: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 6px;
padding: 20px;
margin: 15px 0;
}
.wpdm-lock-title {
font-weight: 600;
margin-bottom: 10px;
color: #856404;
}
.wpdm-lock-description {
margin-bottom: 15px;
color: #856404;
}
.wpdm-lock-form {
display: flex;
gap: 10px;
align-items: end;
flex-wrap: wrap;
}
.wpdm-lock-input {
flex: 1;
min-width: 200px;
}
.wpdm-lock-input input {
width: 100%;
padding: 10px;
border: 1px solid #ced4da;
border-radius: 4px;
font-size: 0.9rem;
}
.wpdm-lock-submit {
background: #007cba;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
transition: background-color 0.2s ease;
}
.wpdm-lock-submit:hover {
background: #005a87;
}
.wpdm-progress {
width: 100%;
height: 6px;
background: #e9ecef;
border-radius: 3px;
overflow: hidden;
margin: 10px 0;
}
.wpdm-progress-bar {
height: 100%;
background: linear-gradient(90deg, #007cba, #00a0e4);
border-radius: 3px;
transition: width 0.3s ease;
}
.wpdm-loading {
display: inline-flex;
align-items: center;
gap: 8px;
color: #6c757d;
font-size: 0.875rem;
}
.wpdm-loading i {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.wpdm-alert {
padding: 12px 16px;
border-radius: 6px;
margin: 15px 0;
display: flex;
align-items: center;
gap: 10px;
}
.wpdm-alert-success {
background: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
}
.wpdm-alert-error {
background: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
}
.wpdm-alert-warning {
background: #fff3cd;
border: 1px solid #ffeaa7;
color: #856404;
}
.wpdm-alert-info {
background: #d1ecf1;
border: 1px solid #b8daff;
color: #0c5460;
}
@media (max-width: 768px) {
.wpdm-package-meta {
flex-direction: column;
gap: 8px;
}
.wpdm-package-stats {
flex-direction: column;
gap: 10px;
}
.wpdm-lock-form {
flex-direction: column;
align-items: stretch;
}
.wpdm-lock-input {
min-width: auto;
}
.wpdm-file-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.wpdm-file-actions {
width: 100%;
justify-content: flex-end;
}
}
@media (prefers-color-scheme: dark) {
.wpdm-download-package {
background: #2d3748;
border-color: #4a5568;
color: #e2e8f0;
}
.wpdm-package-header {
background: #374151;
border-color: #4b5563;
}
.wpdm-package-title {
color: #f7fafc;
}
.wpdm-file-list {
background: #374151;
}
.wpdm-file-list-header {
background: #4b5563;
color: #e2e8f0;
border-color: #6b7280;
}
.wpdm-file-item {
border-color: #4b5563;
}
.wpdm-file-item:hover {
background: #4b5563;
}
.wpdm-file-name {
color: #f7fafc;
}
}