.da-device-manager {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.da-limit-status {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.da-limit-status h3 {
    margin-top: 0;
    color: #1d2327;
}

.da-usage-text {
    font-size: 14px;
    color: #646970;
    margin-bottom: 10px;
}

.da-progress-bar {
    height: 8px;
    background: #e9ecef0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.da-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.da-remaining {
    font-size: 12px;
    color: #646970;
    text-align: right;
}

.da-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .da-device-grid {
        grid-template-columns: 1fr;
    }
}

.da-device-card {
    background: #ffffff;
    border: 2px solid #e9ecef0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.da-device-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.da-device-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f0f0f1;
    border-radius: 8px;
    margin-bottom: 15px;
}

.da-device-icon .dashicons {
    font-size: 28px;
    color: #2271b1;
}

.da-device-info {
    flex: 1;
}

.da-device-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.da-device-meta {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #646970;
}

.da-device-ip {
    margin: 0 0 5px 0;
    font-size: 12px;
    font-family: monospace;
    color: #646970;
}

.da-device-time {
    margin: 0 0 15px 0;
    font-size: 12px;
    color: #646970;
}

.da-remove-device {
    background: #d63638;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: auto;
    transition: background 0.2s ease;
}

.da-remove-device:hover {
    background: #c92a2a;
}

.da-empty-slot {
    background: #f8f9fa;
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.da-empty-slot:hover {
    border-color: #2271b1;
    background: #f0f0f1;
}

.da-empty-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.da-empty-icon .dashicons {
    font-size: 32px;
    color: #2271b1;
}

.da-empty-slot p {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

.da-security-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e7f3ff;
    border: 1px solid #d1e7dd;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 15px;
}

.da-security-tip .dashicons {
    color: #1d4ed8;
    flex-shrink: 0;
}

.da-security-tip p {
    margin: 0;
    font-size: 13px;
    color: #1d4ed8;
    line-height: 1.5;
}

.da-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #3c434a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.da-toast-success {
    background: #00a32a;
}

.da-toast-error {
    background: #d63638;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.da-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #3c434a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.da-toast-success {
    background: #00a32a;
}

.da-toast-error {
    background: #d63638;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}
